Trait log_err::LogErrOption[][src]

pub trait LogErrOption<T> {
    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> LogErrOption<T> for Option<T>[src]

fn log_unwrap(self) -> T[src]

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

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

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

Loading content...

Implementors

Loading content...