Idea: `Option::is_none_or`/`Result::is_ok_or`/`Result::is_err_or`

Currently all those types implement positive version of those functions - Option::is_some_and/Result::is_err_and/Result::is_ok_and. It would be nice if there was a symmetric function doing the negative (val.is_some_and(f) == !val.is_none_or(f)).

1 Like

Available in nightly

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.