isOk method
Returns whether or not this Result
is Ok.
See also:
Rust: Result::is_ok()
Implementation
bool isOk() {
return switch (this) {
Ok() => true,
Err() => false,
};
}
Returns whether or not this Result
is Ok.
See also:
Rust: Result::is_ok()
bool isOk() {
return switch (this) {
Ok() => true,
Err() => false,
};
}