pub fn catch_panic<F: FnOnce() -> R, R>(func: F) -> Result<R, PanicInfo>Expand description
Invokes a function and captures the panic.
The captured panic info will only be fully filled if the panic hook
has been installed (see init_panic_hook).
pub fn catch_panic<F: FnOnce() -> R, R>(func: F) -> Result<R, PanicInfo>Invokes a function and captures the panic.
The captured panic info will only be fully filled if the panic hook
has been installed (see init_panic_hook).