pub trait ResultExt<T, K> {
// Required methods
fn add_context(
self,
context: impl Into<Cow<'static, str>>,
) -> Result<T, Error<K>>;
fn add_context_fn<C: Into<Cow<'static, str>>, F: FnOnce() -> C>(
self,
context: F,
) -> Result<T, Error<K>>;
}Required Methods§
fn add_context( self, context: impl Into<Cow<'static, str>>, ) -> Result<T, Error<K>>
fn add_context_fn<C: Into<Cow<'static, str>>, F: FnOnce() -> C>( self, context: F, ) -> Result<T, Error<K>>
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.