or<F> method
Returns a Result
value as Ok<T, F> if this Result
is Ok<T, E>,
otherwise returns other
.
See also:
Rust: Result::or()
Implementation
Result<T, F> or<F>(Result<T, F> other) => switch (this) {
Ok(value: T value) => Ok(value),
Err() => other
};