pub struct StreamThunk<S: Clone, T> { /* private fields */ }Expand description
An infinite stream backed by a generating function.
The generator is called with a mutable state value to produce the next element.
Implementations§
Auto Trait Implementations§
impl<S, T> Freeze for StreamThunk<S, T>where
S: Freeze,
impl<S, T> !RefUnwindSafe for StreamThunk<S, T>
impl<S, T> !Send for StreamThunk<S, T>
impl<S, T> !Sync for StreamThunk<S, T>
impl<S, T> Unpin for StreamThunk<S, T>where
S: Unpin,
impl<S, T> UnsafeUnpin for StreamThunk<S, T>where
S: UnsafeUnpin,
impl<S, T> !UnwindSafe for StreamThunk<S, T>
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