Trait log_err::LogErrResult [−][src]
pub trait LogErrResult<T, E: Debug> { fn log_unwrap(self) -> T; fn log_expect(self, msg: &str) -> T; }
Required methods
fn log_unwrap(self) -> T
[src]
fn log_expect(self, msg: &str) -> T
[src]
Implementations on Foreign Types
impl<T, E: Debug> LogErrResult<T, E> for Result<T, E>
[src]
impl<T, E: Debug> LogErrResult<T, E> for Result<T, E>
[src]fn log_unwrap(self) -> T
[src]
unwrap
s the Result
, and outputs error message (in exact same style as unwrap
) through error!
as well.
fn log_expect(self, msg: &str) -> T
[src]
expect
s the Result
, and outputs error message (in exact same style as expect
) through error!
as well.