and<U> method

Option<U> and<U>(
  1. Option<U> other
)

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