Trait IteratorExt

Source
pub trait IteratorExt: Iterator + Sized {
    // Required method
    fn perimeter(self) -> Perimeter<Self> 
       where Self::Item: Clone;
}
Expand description

Extension methods for types implementing Iterator.

Required Methods§

Source

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).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I> IteratorExt for I
where I: Iterator,