[][src]Trait easy_error::ResultExt

pub trait ResultExt<T> {
    fn context<S: Into<String>>(self, ctx: S) -> Result<T>;
}

Extention methods to the Result type.

Required methods

fn context<S: Into<String>>(self, ctx: S) -> Result<T>

Adds some context to the error.

Loading content...

Implementations on Foreign Types

impl<T, E: StdError + 'static> ResultExt<T> for StdResult<T, E>[src]

Loading content...

Implementors

Loading content...