pub fn catch_unwind<R, F>(f: F) -> Result<R, ()>where
F: FnOnce() -> R + UnwindSafe,Expand description
Like std::panic::catch_unwind.
pub fn catch_unwind<R, F>(f: F) -> Result<R, ()>where
F: FnOnce() -> R + UnwindSafe,Like std::panic::catch_unwind.