Skip to main content

phase

Function phase 

Source
pub fn phase<F, R>(f: F) -> R
where F: FnOnce() -> R,
Expand description

Runs f inside a phase. Equivalent to constructing a PhaseGuard, running f, and dropping the guard. Panics in f propagate, but the phase is guaranteed to end before unwinding leaves this function.