pub fn exhaustive_ordered_unique_pairs<I: Iterator>(
    xs: I
) -> ExhaustiveOrderedUniquePairs<I>Notable traits for ExhaustiveOrderedUniquePairs<I>impl<I: Iterator> Iterator for ExhaustiveOrderedUniquePairs<I> where
    I::Item: Clone
type Item = (I::Item, I::Item);
where
    I::Item: Clone
Expand description

This documentation applies not only to exhaustive_ordered_unique_pairs, but also to exhaustive_ordered_unique_triples, exhaustive_ordered_unique_quadruples, and so on. See exhaustive_ordered_unique_tuples for more information.

Generates $k$-tuples of elements from a single iterator, such that each tuple has no repeated elements, and the elements in each Vec are ordered the same way as they are in the source iterator.

The source iterator should not repeat any elements, but this is not enforced.

If the input iterator is infinite, the output length is also infinite.

If the input iterator length is $n$, the output length is $\binom{n}{k}$.

If xs is empty, the output is also empty.

Examples

See here.