Trait WithCodeResultExt
proc_exit
pub trait WithCodeResultExt<T> { pub fn with_code(self, code: Code) -> Result<T, Exit>; }
Extension for converting errors to Exit.
Exit
pub fn with_code(self, code: Code) -> Result<T, Exit>
Convert an Error into an Exit
impl<T, E: Display + 'static> WithCodeResultExt<T> for Result<T, E>