pub trait Context<T> {
// Required method
fn err_context<C: Into<ImmutStr>, F: FnOnce() -> C>(
self,
context: F,
) -> Result<T, BError>;
}
Expand description
Helper trait to add more context to a given error
Required Methods§
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.