pub enum ThunkState {
Unevaluated {
closure: RtObject,
},
Evaluating,
Evaluated {
value: RtObject,
},
Excepted {
exception: RtObject,
},
}Expand description
Thunk state.
Variants§
Unevaluated
Thunk has not been evaluated.
Evaluating
Thunk is currently being evaluated (cycle detection).
Evaluated
Thunk has been evaluated and the result is cached.
Excepted
Thunk evaluation resulted in an exception.
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