pub trait Peekable: Iterator {
    // Required method
    fn peek(&self) -> Option<Self::Item>;
}

Required Methods§

source

fn peek(&self) -> Option<Self::Item>

Returns the next() value without advancing the iterator.

Implementors§