Skip to main content

catch_unwind_result

Function catch_unwind_result 

Source
pub fn catch_unwind_result<'a, F, T, E>(f: F) -> Result<T, E>
where F: FnOnce() -> Result<T, E>, E: Debug + From<&'a str>,
Expand description

Catches panics and returns the result.