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]
Implementations on Foreign Types
impl<T> LogErrOption<T> for Option<T>
[src]
impl<T> LogErrOption<T> for Option<T>
[src]fn log_unwrap(self) -> T
[src]
unwrap
s the Option
, 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 Option
, and outputs error message (in exact same style as expect
) through error!
as well.