is_unique_sorted_by

Function is_unique_sorted_by 

Source
pub fn is_unique_sorted_by<T: Ord, I: Iterator<Item = T>, F: FnMut(&T, &T) -> Ordering>(
    iterator: I,
    cmp: F,
) -> bool
Expand description

Checks if an iterator yields ordered and unique values based on a given comparator.