1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
//! A number of iterators used in Rome.
pub mod merge_iterator;
pub mod transitive_iterator;

pub use self::merge_iterator::MergeIterator;
pub use self::transitive_iterator::TransitiveIterator;

/// Iterator that gives out items in ascending order
/// This trait only indicates that the iterator works like this.
/// The implementations of the trait are responsible for ensuring that
/// items are sorted and that each value occurs only once.
pub trait SortedIterator: Iterator
where
    <Self as Iterator>::Item: Ord,
{
}