pub trait LogErrOption<T> {
// Required methods
fn log_unwrap(self) -> T;
fn log_expect(self, msg: &str) -> T;
}
Required Methods§
fn log_unwrap(self) -> T
fn log_expect(self, msg: &str) -> T
Implementations on Foreign Types§
Source§impl<T> LogErrOption<T> for Option<T>
impl<T> LogErrOption<T> for Option<T>
Source§fn log_unwrap(self) -> T
fn log_unwrap(self) -> T
unwrap
s the Option
, and outputs error message (in exact same style as unwrap
) through error!
as well.
Source§fn log_expect(self, msg: &str) -> T
fn log_expect(self, msg: &str) -> T
expect
s the Option
, and outputs error message (in exact same style as expect
) through error!
as well.