isSome method

bool isSome()

Returns whether or not this Option holds a value (Some).

See also: Rust: Option::is_some()

Implementation

bool isSome() => switch (this) {
	Some() => true,
	None() => false
};