Trait TraceErrResult

Source
pub trait TraceErrResult<T, E: Debug> {
    // Required method
    fn trace_expect(self, msg: &str) -> T;
}

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<T, E: Debug> TraceErrResult<T, E> for Result<T, E>

Source§

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

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

Implementors§