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