pub trait ErrorOps<E>: WithError<E> {
// Required methods
fn recover<F>(self, recovery: F) -> Self
where F: FnOnce(E) -> Self,
Self: Sized;
fn bimap_result<B, F, SuccessF, ErrorF>(
self,
success_f: SuccessF,
error_f: ErrorF,
) -> Result<B, F>
where SuccessF: FnOnce(Self::Success) -> B,
ErrorF: FnOnce(E) -> F,
Self: Sized;
}Expand description
Operations for error recovery and bidirectional mapping.
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.