Trait parsell::PeekableIterator
[−]
[src]
pub trait PeekableIterator: Iterator { fn is_empty(&mut self) -> bool; fn next_if_ref<F>(&mut self, f: F) -> Option<Self::Item>
where
F: for<'a> Function<&'a Self::Item, Output = bool>; fn next_if<F>(&mut self, f: F) -> Option<Self::Item>
where
F: Function<Self::Item, Output = bool>,
Self::Item: Copy, { ... } }
Required Methods
fn is_empty(&mut self) -> bool
fn next_if_ref<F>(&mut self, f: F) -> Option<Self::Item> where
F: for<'a> Function<&'a Self::Item, Output = bool>,
F: for<'a> Function<&'a Self::Item, Output = bool>,
Provided Methods
fn next_if<F>(&mut self, f: F) -> Option<Self::Item> where
F: Function<Self::Item, Output = bool>,
Self::Item: Copy,
F: Function<Self::Item, Output = bool>,
Self::Item: Copy,