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]

Loading content...

Implementations on Foreign Types

impl<T, E: Debug> LogErrResult<T, E> for Result<T, E>[src]

fn log_unwrap(self) -> T[src]

unwraps the Result, and outputs error message (in exact same style as unwrap) through error! as well.

fn log_expect(self, msg: &str) -> T[src]

expects the Result, and outputs error message (in exact same style as expect) through error! as well.

Loading content...

Implementors

Loading content...