Trait peeking_take_while::PeekableExt
[−]
[src]
pub trait PeekableExt<'a, I>: Iterator where
I: 'a + Iterator, { fn peeking_take_while<P>(
&'a mut self,
predicate: P
) -> PeekingTakeWhile<'a, I, P>
where
Self: Sized,
P: FnMut(&Self::Item) -> bool; }
The Iterator
extension trait that provides the peeking_take_while
method.
See the module documentation for details.
Required Methods
fn peeking_take_while<P>(
&'a mut self,
predicate: P
) -> PeekingTakeWhile<'a, I, P> where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
&'a mut self,
predicate: P
) -> PeekingTakeWhile<'a, I, P> where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
The Iterator
extension trait that provides the peeking_take_while
method.
See the module documentation for details.