Hi! I've been finding myself wanting to evaluate some predicate against the contents of an Option, and get the resulting bool out, such that None => false, Some(x) if !some_predicate(x) => false, Some(x) if some_predicate(x) => true.
Is there a convenient shorthand from this? I've looked at the Option doc and can't find one, but I feel like I'm maybe missing something. I can also think of into_iter().any(|x| some_predicate(x)), but I don't know if that's really an improvement.