isOk method

bool isOk()

Returns whether or not this Result is Ok.

See also: Rust: Result::is_ok()

Implementation

bool isOk() {
  return switch (this) {
    Ok() => true,
    Err() => false,
  };
}