pub struct FoldDef { /* private fields */ }Expand description
Definition of a “fold” function.
The “fold” function is similar to the “fold” function in stdlib. It takes an initial state, processes new entries, then output the new state.
Given an append-only Log, the state of a “fold” function can
be saved to disk and loaded later. A Log maintains the on-disk
state so “fold” calculation won’t always start from scratch.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FoldDef
impl RefUnwindSafe for FoldDef
impl Send for FoldDef
impl Sync for FoldDef
impl Unpin for FoldDef
impl UnwindSafe for FoldDef
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