pub trait ResultOrElseMap<T, E> {
// Required method
fn or_else_map<U, D, F>(self, default: D, map: F) -> U
where D: FnOnce(E) -> U,
F: FnOnce(T) -> U;
}Expand description
Result::map_or_else but with the english words in “WYSIWYG” order
Required Methods§
fn or_else_map<U, D, F>(self, default: D, map: F) -> U
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".