Trait mmrbi::ResultExt

source ·
pub trait ResultExt {
    type Output;

    // Required method
    fn or_die(self) -> Self::Output;
}
Expand description

Utility methods for std::result::Result

Required Associated Types§

Required Methods§

source

fn or_die(self) -> Self::Output

Shorthand for result.unwrap_or_else(|err| fatal!("{}", err))

Implementations on Foreign Types§

source§

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

§

type Output = T

source§

fn or_die(self) -> Self::Output

Implementors§