Function std::rt::unwind::try[src]

pub unsafe fn try(f: ||) -> Result<(), Box<Any>>

Invoke a closure, capturing the cause of failure if one occurs.

This function will return None if the closure did not fail, and will return Some(cause) if the closure fails. The cause returned is the object with which failure was originally invoked.

This function also is unsafe for a variety of reasons: