pub struct FixThunk<T: Clone> { /* private fields */ }Expand description
A fixed-point computation using memoized thunks.
Implements fix f = f (fix f) lazily: each call to compute evaluates
one step, caching the result. Useful for lazy recursive definitions.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for FixThunk<T>
impl<T> !RefUnwindSafe for FixThunk<T>
impl<T> !Send for FixThunk<T>
impl<T> !Sync for FixThunk<T>
impl<T> Unpin for FixThunk<T>where
T: Unpin,
impl<T> UnsafeUnpin for FixThunk<T>
impl<T> !UnwindSafe for FixThunk<T>
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