{"ast_node_type":"function","tokens":[{"end":79,"kind":"keyword","start":0,"text":"pub"}]}
pub fn catch_fatal_errors<F: FnOnce() -> R, R>(f: F) -> Result<R, FatalError> {
/// the panic into a `Result` instead.
    catch_unwind(panic::AssertUnwindSafe(f)).map_err(|value| {