mapErr<F> method
Maps a Result<T, E>
to a Result<T, F>
using the given function with the
held value.
Returns:
See also:
Rust: Result::map_err()
Implementation
Result<T, F> mapErr<F>(F Function(E) mapFn) => switch (this) {
Ok(value: T value) => Ok(value),
Err(value: E value) => Err(mapFn(value))
};