pub enum LazySeqState {
Pending(Box<dyn Thunk>),
Forced(Value),
Error(String),
}Expand description
Internal state of a lazy sequence cell.
Variants§
Pending(Box<dyn Thunk>)
Thunk not yet evaluated.
Forced(Value)
Result cached after first force.
Error(String)
Thunk evaluation failed; error message is cached.
Auto Trait Implementations§
impl !RefUnwindSafe for LazySeqState
impl !Send for LazySeqState
impl !Sync for LazySeqState
impl !UnwindSafe for LazySeqState
impl Freeze for LazySeqState
impl Unpin for LazySeqState
impl UnsafeUnpin for LazySeqState
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