pub trait ResultExt<T> {
// Required method
fn chain_err<F, EK>(self, callback: F) -> Result<T, Error>
where F: FnOnce() -> EK,
EK: Into<ErrorKind>;
}
Expand description
Additional methods for Result
, for easy interaction with this crate.
Required Methods§
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.