pub trait ErrorContext<T> {
// Required methods
fn context(
self,
context: impl Into<Cow<'static, str>>,
) -> Result<T, RustealError>;
fn with_context<C, F>(self, context: F) -> Result<T, RustealError>
where C: Into<Cow<'static, str>>,
F: FnOnce() -> C;
}Required Methods§
fn context( self, context: impl Into<Cow<'static, str>>, ) -> Result<T, RustealError>
fn with_context<C, F>(self, context: F) -> Result<T, RustealError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".