Struct Iter
#[must_use = "streams do nothing unless polled"]
pub struct Iter<I> { /* private fields */ }
Stream for the iter function.
Implementations
impl<I> Iter<I>
fn get_ref(&self) -> &IAcquires a reference to the underlying iterator that this stream is pulling from.
fn get_mut(&mut self) -> &mut IAcquires a mutable reference to the underlying iterator that this stream is pulling from.
fn into_inner(self) -> IConsumes this stream, returning the underlying iterator.
Trait Implementations
impl<I> Stream for Iter<I>
where
I: Iterator,
type Item = <I as Iterator>::Item;fn poll_next(self: Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<I::Item>>fn size_hint(&self) -> (usize, Option<usize>)
impl<I> Unpin for Iter<I>
impl<I: Clone> Clone for Iter<I>
fn clone(&self) -> Self
impl<I: Debug> Debug for Iter<I>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<I> Freeze for Iter<I>
where
I: Freeze,
impl<I> RefUnwindSafe for Iter<I>
where
I: RefUnwindSafe,
impl<I> Send for Iter<I>
where
I: Send,
impl<I> Sync for Iter<I>
where
I: Sync,
impl<I> UnsafeUnpin for Iter<I>
where
I: UnsafeUnpin,
impl<I> UnwindSafe for Iter<I>
where
I: UnwindSafe,
Blanket Implementations
impl<S> TryStreamExt for Iter<I>
where
S: TryStream + ?Sized,
impl<S, T, E> TryStream for Iter<I>
where
S: Stream<Item = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
impl<T> Any for Iter<I>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Iter<I>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Iter<I>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Iter<I>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Iter<I>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> StreamExt for Iter<I>
where
T: Stream + ?Sized,
impl<T> ToOwned for Iter<I>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Iter<I>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Iter<I>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Iter<I>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>