or method
Returns this Option
if this Option
is Some<T>, otherwise returns other
.
See also:
Rust: Option::or()
Implementation
Option<T> or(Option<T> other) => switch (this) {
Some() => this,
None() => other
};
Returns this Option
if this Option
is Some<T>, otherwise returns other
.
See also:
Rust: Option::or()
Option<T> or(Option<T> other) => switch (this) {
Some() => this,
None() => other
};