pub trait ResultExtensionswhere
Self: Sized,{
// Provided methods
fn to_ok<E>(self) -> Result<Self, E> { ... }
fn to_err<T>(self) -> Result<T, Self> { ... }
}Expand description
Allows any Sized type to be functionally moved into a Result<T, E>.
Provided 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.