Function cargo::core::resolver::shortcircuit_max
source ยท fn shortcircuit_max<I: Ord>(iter: impl Iterator<Item = Option<I>>) -> Option<I>
Expand description
Returns Some of the largest item in the iterator. Returns None if any of the items are None or the iterator is empty.