pub trait PeekableExt: Iterator {
// Required method
fn peek(&mut self) -> Option<&Self::Item>;
}Expand description
A trait for iterators that support peeking at the next item without consuming it.
pub trait PeekableExt: Iterator {
// Required method
fn peek(&mut self) -> Option<&Self::Item>;
}A trait for iterators that support peeking at the next item without consuming it.