Skip to main content

Thunk

Trait Thunk 

Source
pub trait Thunk: Debug + Trace {
    // Required method
    fn force(&self) -> Result<Value, String>;
}
Expand description

A deferred computation that produces a Value when forced.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§