Trait blazesym::ErrorExt

source ·
pub trait ErrorExt: Sealed {
    type Output;

    // Required methods
    fn context<C>(self, context: C) -> Self::Output
       where C: IntoCowStr;
    fn with_context<C, F>(self, f: F) -> Self::Output
       where C: IntoCowStr,
             F: FnOnce() -> C;
}

Required Associated Types§

Required Methods§

source

fn context<C>(self, context: C) -> Self::Outputwhere C: IntoCowStr,

source

fn with_context<C, F>(self, f: F) -> Self::Outputwhere C: IntoCowStr, F: FnOnce() -> C,

Implementations on Foreign Types§

source§

impl ErrorExt for Error

§

type Output = Error

source§

fn context<C>(self, context: C) -> Errorwhere C: IntoCowStr,

source§

fn with_context<C, F>(self, f: F) -> Errorwhere C: IntoCowStr, F: FnOnce() -> C,

source§

impl<T, E> ErrorExt for Result<T, E>where E: ErrorExt,

§

type Output = Result<T, <E as ErrorExt>::Output>

source§

fn context<C>(self, context: C) -> Self::Outputwhere C: IntoCowStr,

source§

fn with_context<C, F>(self, f: F) -> Self::Outputwhere C: IntoCowStr, F: FnOnce() -> C,

source§

impl ErrorExt for Error

§

type Output = Error

source§

fn context<C>(self, context: C) -> Errorwhere C: IntoCowStr,

source§

fn with_context<C, F>(self, f: F) -> Errorwhere C: IntoCowStr, F: FnOnce() -> C,

Implementors§

source§

impl ErrorExt for blazesym::Error