pub trait ErrorContext<T> {
// Required methods
fn error<M: Into<Cow<'static, str>>>(self, message: M) -> Result<T>;
fn or_error<M: Into<Cow<'static, str>>, F: FnOnce() -> M>(
self,
f: F,
) -> Result<T>;
}
Required Methods§
fn error<M: Into<Cow<'static, str>>>(self, message: M) -> Result<T>
fn or_error<M: Into<Cow<'static, str>>, F: FnOnce() -> M>( self, f: F, ) -> Result<T>
Object Safety§
This trait is not object safe.