Skip to main content

with_checkpoint

Function with_checkpoint 

Source
pub fn with_checkpoint<T, E>(f: impl FnOnce(&Checkpoint) -> Result<T, E>) -> T
Expand description

Creates a checkpoint, runs the given function, and reverts on error.