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