pub fn first_or_optional<T>( source: impl IntoIterator<Item = T>, selector: impl Fn(&T) -> bool, ) -> Option<T>
The first item that selector accepts, or none (FirstOrOptional).
selector
FirstOrOptional