pub struct LazyLinkedStream<T> {
pub head: T,
pub tail_fn: Box<dyn Fn() -> Option<Box<LazyLinkedStream<T>>>>,
}Expand description
Lazy linked-list (stream) using closures for infinite sequences.
Fields§
§head: T§tail_fn: Box<dyn Fn() -> Option<Box<LazyLinkedStream<T>>>>Implementations§
Auto Trait Implementations§
impl<T> Freeze for LazyLinkedStream<T>where
T: Freeze,
impl<T> !RefUnwindSafe for LazyLinkedStream<T>
impl<T> !Send for LazyLinkedStream<T>
impl<T> !Sync for LazyLinkedStream<T>
impl<T> Unpin for LazyLinkedStream<T>where
T: Unpin,
impl<T> UnsafeUnpin for LazyLinkedStream<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for LazyLinkedStream<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