Trait adjacent_pair_iterator::AdjacentPairIterator[][src]

pub trait AdjacentPairIterator {
    type Iterator: Iterator;
    fn adjacent_pairs(self) -> AdjacentPairs<Self::Iterator>
Notable traits for AdjacentPairs<IteratorType>
impl<IteratorType> Iterator for AdjacentPairs<IteratorType> where
    IteratorType: Iterator,
    IteratorType::Item: Clone
type Item = (IteratorType::Item, IteratorType::Item);
; }
Expand description

Extends all types implementing IntoIterator with clonable items with the adjacent_pairs method.

Associated Types

Required methods

Return an iterator of adjacent pairs in Self.

Implementors