pub struct IterInput<I, C>where
I: Iterator,{ /* private fields */ }
Expand description
An input adapter that wraps any iterator and provides a TryNextWithContext
interface, automatically fusing the iterator so it never yields items
after returning None
once.
§Type Parameters
I
: The underlying iterator type. It can be anyIterator
.C
: The context type, which is passed by mutable reference to eachtry_next_with_context
call.
Implementations§
Trait Implementations§
Source§impl<I, C> TryNextWithContext for IterInput<I, C>where
I: Iterator,
impl<I, C> TryNextWithContext for IterInput<I, C>where
I: Iterator,
Auto Trait Implementations§
impl<I, C> Freeze for IterInput<I, C>where
I: Freeze,
impl<I, C> RefUnwindSafe for IterInput<I, C>where
I: RefUnwindSafe,
impl<I, C> Send for IterInput<I, C>where
I: Send,
impl<I, C> Sync for IterInput<I, C>where
I: Sync,
impl<I, C> Unpin for IterInput<I, C>where
I: Unpin,
impl<I, C> UnwindSafe for IterInput<I, C>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more