pub fn on_panic<F: FnOnce()>(action: F) -> OnPanic<(), impl FnOnce(())>
Runs action if the current scope unwinds, for a guard that carries no state.
action