Trait Pairable

Source
pub trait Pairable: Sized + Iterator {
    // Required method
    fn pair(self) -> Pair<Self> ;
}
Expand description

Returns an iterator that returns elements of the original iterator 2 at a time

Required Methods§

Source

fn pair(self) -> Pair<Self>

Returns an iterator that returns elements of the original iterator 2 at a time

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: Iterator> Pairable for I