Function is_sorted_and_unique

Source
pub fn is_sorted_and_unique<T, I>(iter: I) -> bool
where T: PartialOrd + Clone, I: IntoIterator<Item = T>,
Expand description

Check whether an iterator contains values that are sorted and unique