Trait OrExit

Source
pub trait OrExit<T> {
    // Required method
    fn unwrap_or_exit<M: Display>(self, with_msg_prefix: Option<M>) -> T;
}

Required Methods§

Source

fn unwrap_or_exit<M: Display>(self, with_msg_prefix: Option<M>) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> OrExit<T> for Option<T>

Source§

fn unwrap_or_exit<M: Display>(self, with_msg_prefix: Option<M>) -> T

Source§

impl<T, E: Display> OrExit<T> for Result<T, E>

Source§

fn unwrap_or_exit<M: Display>(self, with_msg_prefix: Option<M>) -> T

Implementors§