Trait ResultExt
mmrbi
pub trait ResultExt { type Output; fn or_die(self) -> Self::Output; }
Utility methods for std::result::Result
type Output
fn or_die(self) -> Self::Output
Shorthand for result.unwrap_or_else(|err| fatal!("{}", err))
result.unwrap_or_else(|err| fatal!("{}", err))
impl<T, E: Display> ResultExt for Result<T, E>
type Output = T