pub trait TraceErrResult<T, E: Debug> {
// 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, E: Debug> TraceErrResult<T, E> for Result<T, E>
impl<T, E: Debug> TraceErrResult<T, E> for Result<T, E>
Source§fn trace_expect(self, msg: &str) -> T
fn trace_expect(self, msg: &str) -> T
expect
s the Result
, and outputs error message (in exact same style as expect
) through error!
as well.