Function panic_hook::recover_safe [−][src]
pub fn recover_safe<F, R>(f: F) -> Result<R> where
F: FnOnce() -> R,
Recover from closure which may panic.
This function assumes the closure is able to be forced to implement UnwindSafe
.
Also see AssertUnwindSafe
.