LogErrOption

Trait LogErrOption 

Source
pub trait LogErrOption<T> {
    // Required methods
    fn log_unwrap(self) -> T;
    fn log_expect(self, msg: &str) -> T;
}

Required Methods§

Source

fn log_unwrap(self) -> T

Source

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

Implementations on Foreign Types§

Source§

impl<T> LogErrOption<T> for Option<T>

Source§

fn log_unwrap(self) -> T

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

Source§

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

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

Implementors§