/// Invoke a closure, capturing the cause of panic if one occurs.
///
- /// This function will return `None` if the closure did not panic, and will
- /// return `Some(cause)` if the closure panics. The `cause` returned is the
+ /// This function will return `Ok(())` if the closure did not panic, and will
+ /// return `Err(cause)` if the closure panics. The `cause` returned is the
/// object with which panic was originally invoked.
///
/// This function also is unsafe for a variety of reasons:
use libc::{c_void, c_int};
#[repr(C)]
- #[allow(missing_copy_implementations)]
pub struct EXCEPTION_RECORD;
#[repr(C)]
- #[allow(missing_copy_implementations)]
pub struct CONTEXT;
#[repr(C)]
- #[allow(missing_copy_implementations)]
pub struct DISPATCHER_CONTEXT;
#[repr(C)]