pub trait ContextExt<T> {
// Required methods
fn context<C: Into<String>>(self, context: C) -> Result<T>;
fn with_context<C: Into<String>, F: FnOnce() -> C>(self, f: F) -> Result<T>;
}Required Methods§
fn context<C: Into<String>>(self, context: C) -> Result<T>
fn with_context<C: Into<String>, F: FnOnce() -> C>(self, f: F) -> Result<T>
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.