fn is_some_and<T>(opt: Option<T>, f: impl FnOnce(T) -> bool) -> bool
This API is only stable since 1.70 so can’t use it when current MSRV is lower