pub trait BoxedResultExt<T, E: ?Sized>: BoxedResultSealed {
// Required methods
fn context<M>(self, msg: M) -> Result<T, BoxContext<M, E>>
where M: Display;
fn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, E>>
where F: FnOnce(&Box<E>) -> M,
M: Display;
}
Expand description
Required Methods§
Sourcefn context<M>(self, msg: M) -> Result<T, BoxContext<M, E>>where
M: Display,
fn context<M>(self, msg: M) -> Result<T, BoxContext<M, E>>where
M: Display,
A ResultExt::context
equivalent.
Sourcefn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, E>>
fn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, E>>
A ResultExt::with_context
equivalent.
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.