pub trait ResultExt {
type Ok;
type Err;
// Required method
fn into_ec<F: FnOnce(Self::Err) -> ErrorCode>(
self,
f: F,
) -> Result<Self::Ok>;
}Expand description
Extension trait for std::result::Result.
Required Associated Types§
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.