Trait clarity_repl::clarity::util::pair::Pairable[][src]

pub trait Pairable: Sized + Iterator {
    fn pair(self) -> Pair<Self>

Notable traits for Pair<I>

impl<I: Iterator> Iterator for Pair<I> type Item = (I::Item, I::Item);
; }

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

Required methods

fn pair(self) -> Pair<Self>

Notable traits for Pair<I>

impl<I: Iterator> Iterator for Pair<I> type Item = (I::Item, I::Item);
[src]

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

Loading content...

Implementors

impl<I: Iterator> Pairable for I[src]

fn pair(self) -> Pair<I>

Notable traits for Pair<I>

impl<I: Iterator> Iterator for Pair<I> type Item = (I::Item, I::Item);
[src]

Creates an iterator that yields pairs of elements from the underlying iterator, yielding None when there are fewer than two elements to return.

Loading content...