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§
fn into_target(self, ctx: Context) -> Target
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".