peeking_take_while

Trait PeekableExt

Source
pub trait PeekableExt<'a, I>: Iterator
where 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§

Source

fn peeking_take_while<P>( &'a mut self, predicate: P, ) -> PeekingTakeWhile<'a, I, P>
where Self: Sized, P: FnMut(&<Self as Iterator>::Item) -> bool,

The Iterator extension trait that provides the peeking_take_while method.

See the module documentation for details.

Implementations on Foreign Types§

Source§

impl<'a, I> PeekableExt<'a, I> for Peekable<I>
where I: 'a + Iterator,

Source§

fn peeking_take_while<P>( &'a mut self, predicate: P, ) -> PeekingTakeWhile<'_, I, P>
where P: FnMut(&<Self as Iterator>::Item) -> bool,

Implementors§