Function catch_unwind

pub fn catch_unwind<R, F>(f: F) -> Result<R, Box<dyn Any + Send>>
where F: FnOnce() -> R,