pub trait ErrorContext<Context, Target> {
// Required methods
fn context(self, ctx: Context) -> Target;
fn context_with<F: Fn() -> Context>(self, ctx: F) -> Target;
}Expand description
Reverse implemented for Result<T, E> where E: IntoErrorContext
Required Methods§
fn context(self, ctx: Context) -> Target
fn context_with<F: Fn() -> Context>(self, ctx: F) -> Target
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.