[−][src]Trait plexus::IteratorExt
Extension methods for types implementing Iterator
.
Required methods
ⓘImportant traits for Perimeter<I>fn perimeter(self) -> Perimeter<Self> where
Self::Item: Clone,
ⓘImportant traits for Perimeter<I>
Self::Item: Clone,
Provides an iterator over a window of duplets that includes the first value in the sequence at the beginning and end of the iteration.
Given a collection with ordered elements a
, b
, and c
, this
iterator yeilds the ordered items (a, b)
, (b, c)
, (c, a)
.