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