pub trait FirstLast: Iterator {
    // Required method
    fn first_last(self) -> Option<(Self::Item, Self::Item)>;
}

Required Methods§

source

fn first_last(self) -> Option<(Self::Item, Self::Item)>

Implementors§

source§

impl<I> FirstLast for I
where I: Iterator, I::Item: Clone,