or method

Option<T> or(
  1. Option<T> other
)

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
};