UnwrapOrExit

Trait UnwrapOrExit 

Source
pub trait UnwrapOrExit<T> {
    // Required method
    fn unwrap_or_exit(self) -> T;
}
Expand description

Exit with an error message.

Required Methods§

Source

fn unwrap_or_exit(self) -> T

Unwrap the result or exit with an error message.

Implementations on Foreign Types§

Source§

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

Implementors§