pub struct Thunk {
pub body: Value,
pub forced: RefCell<Option<Value>>,
}Expand description
A lazy promise: delay/force with memoization.
Fields§
§body: Value§forced: RefCell<Option<Value>>Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Thunk
impl !RefUnwindSafe for Thunk
impl Send for Thunk
impl !Sync for Thunk
impl Unpin for Thunk
impl UnsafeUnpin for Thunk
impl UnwindSafe for Thunk
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