Skip to main content

on_panic

Function on_panic 

Source
pub fn on_panic<F: FnOnce()>(action: F) -> OnPanic<(), impl FnOnce(())>
Expand description

Runs action if the current scope unwinds, for a guard that carries no state.