Expand description
Types that can be constructed lazily from a computation.
§Examples
use fp_library::{brands::*, functions::*, types::*};
let eval: Thunk<i32> = defer(|| Thunk::new(|| 42));
assert_eq!(eval.evaluate(), 42);Traits§
- Deferrable
- A type class for types that can be constructed lazily.
Functions§
- defer
- Creates a value from a computation that produces the value.