pub fn is_normalized<T: Endpoint>(
intervals: impl IntoIterator<Item: ClosedRange<EndT = T>>,
) -> boolExpand description
Determines whether the input sequence is in normalized format:
- consists of valid intervals
(start, stop)withstart <= stop - intervals are sorted by the
startendpoint - adjacent intervals are disjoint and separated by at least one
Endpointvalue
Checking this property takes time linear in the length of the input iterator.