Trait ResultExt
easy_error
pub trait ResultExt<T> { fn context<S: Into<String>>(self, ctx: S) -> Result<T>; }
Extention methods to the Result type.
Result
fn context<S: Into<String>>(self, ctx: S) -> Result<T>
Adds some context to the error.
impl<T, E: StdError + 'static> ResultExt<T> for StdResult<T, E>