IntoErrorContext

Trait IntoErrorContext 

Source
pub trait IntoErrorContext<Context, Target> {
    // Required method
    fn into_target(self, ctx: Context) -> Target;
}
Expand description

A trait that takes a context + self to produce a target. This is useful for errors that depend on a context, or when used to generate errors from a context and error (see: ErrorContext).

Required Methods§

Source

fn into_target(self, ctx: Context) -> Target

Implementors§