We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b0038 commit c1ff07cCopy full SHA for c1ff07c
futures-util/src/stream/iter.rs
@@ -10,6 +10,23 @@ pub struct Iter<I> {
10
iter: I,
11
}
12
13
+impl<I> Iter<I> {
14
+ /// Acquires a reference to the underlying iterator that this stream is pulling from.
15
+ pub fn get_ref(&self) -> &I {
16
+ &self.iter
17
+ }
18
+
19
+ /// Acquires a mutable reference to the underlying iterator that this stream is pulling from.
20
+ pub fn get_mut(&mut self) -> &mut I {
21
+ &mut self.iter
22
23
24
+ /// Consumes this stream, returning the underlying iterator.
25
+ pub fn into_inner(self) -> I {
26
+ self.iter
27
28
+}
29
30
impl<I> Unpin for Iter<I> {}
31
32
/// Converts an `Iterator` into a `Stream` which is always ready
0 commit comments