[][src]Trait plexus::IteratorExt

pub trait IteratorExt: Iterator + Sized {
    fn perimeter(self) -> Perimeter<Self>
    where
        Self::Item: Clone
; }

Extension methods for types implementing Iterator.

Required methods

Important traits for Perimeter<I>
fn perimeter(self) -> Perimeter<Self> where
    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).

Loading content...

Implementors

impl<I> IteratorExt for I where
    I: Iterator
[src]

Loading content...