Trait iterator_markers::AscendingIterator [] [src]

pub unsafe trait AscendingIterator: Iterator where Self::Item: PartialOrd { }

Marker trait for iterators that return items in a sorted ascending order. It does not guarantee uniqueness, but equal items must come straight after each other. Use I: UniqueIterator+AscendingIterator if you need both.

The trait is unsafe so consumers can rely on it.
It is a logic error to implement both AscendingIterator and DescendingIterator for the same type.

Examples:

let _ = (1..10);

Implementors