Skip to main content

with_deterministic_replay

Function with_deterministic_replay 

Source
pub fn with_deterministic_replay<R>(f: impl FnOnce() -> R) -> R
Expand description

Run f with the deterministic-replay lowering enabled, restoring the previous mode afterwards (panic-safe). Returns f’s result.