catch

Function catch 

Source
pub fn catch<F: RefUnwindSafe + FnOnce() -> Result<bool, PanicError>>(
    fun: F,
) -> Result<bool, PanicError>