Trait TraceErrOption

Source
pub trait TraceErrOption<T> {
    // 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> TraceErrOption<T> for Option<T>

Source§

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

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

Implementors§