Skip to main content

UnwrapOrExit

Trait UnwrapOrExit 

Source
trait UnwrapOrExit<T> {
    // Required method
    fn unwrap_or_exit(self, ctx: &str) -> T;
}

Required Methods§

Source

fn unwrap_or_exit(self, ctx: &str) -> T

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E: Error> UnwrapOrExit<T> for Result<T, E>

Source§

fn unwrap_or_exit(self, ctx: &str) -> T

Implementors§