isErrAnd method
Returns whether or not this Result
is Err and that the held error value
matches the given predicate.
Returns:
true
if thisResult
is Err andpredicate
returnstrue
.false
if thisResult
is Ok, orpredicate
returnsfalse
See also:
Rust: Result::is_err_and()
Implementation
bool isErrAnd(bool Function(E) predicate) => switch (this) {
Ok() => false,
Err(value: E value) => predicate(value)
};