adjacent_pair_iterator

Trait AdjacentPairIterator

Source
pub trait AdjacentPairIterator {
    type Iterator: Iterator;

    // Required method
    fn adjacent_pairs(self) -> AdjacentPairs<Self::Iterator> ;
}
Expand description

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

Required Associated Types§

Required Methods§

Source

fn adjacent_pairs(self) -> AdjacentPairs<Self::Iterator>

Return an iterator of adjacent pairs in Self.

Implementors§

Source§

impl<Iterable> AdjacentPairIterator for Iterable
where Iterable: IntoIterator, Iterable::Item: Clone,

Source§

type Iterator = <Iterable as IntoIterator>::IntoIter