pub enum ThunkState {
Unevaluated(Env, CoreExpr),
BlackHole,
Evaluated(Value),
}Expand description
State of a thunk in the thunk store.
Variants§
Unevaluated(Env, CoreExpr)
Not yet evaluated: captured env + expression
BlackHole
Currently being forced (cycle detection)
Evaluated(Value)
Already evaluated to a value
Trait Implementations§
Source§impl Clone for ThunkState
impl Clone for ThunkState
Source§fn clone(&self) -> ThunkState
fn clone(&self) -> ThunkState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThunkState
impl RefUnwindSafe for ThunkState
impl Send for ThunkState
impl Sync for ThunkState
impl Unpin for ThunkState
impl UnsafeUnpin for ThunkState
impl UnwindSafe for ThunkState
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