pub trait PeekableExt<'a, I>: Iteratorwhere
I: 'a + Iterator,{
// Required method
fn peeking_take_while<P>(
&'a mut self,
predicate: P,
) -> PeekingTakeWhile<'a, I, P> ⓘ
where Self: Sized,
P: FnMut(&<Self as Iterator>::Item) -> bool;
}
Expand description
The Iterator
extension trait that provides the peeking_take_while
method.
See the module documentation for details.
Required Methods§
Sourcefn peeking_take_while<P>(
&'a mut self,
predicate: P,
) -> PeekingTakeWhile<'a, I, P> ⓘ
fn peeking_take_while<P>( &'a mut self, predicate: P, ) -> PeekingTakeWhile<'a, I, P> ⓘ
The Iterator
extension trait that provides the peeking_take_while
method.
See the module documentation for details.