Stopper

Trait Stopper 

Source
pub trait Stopper: Iterator
where Self: Sized,
{ // Required method fn stop_once<P: FnMut(&Self::Item) -> bool>( self, predicate: P, ) -> StopOnce<Self, P> ; }

Required Methods§

Source

fn stop_once<P: FnMut(&Self::Item) -> bool>( self, predicate: P, ) -> StopOnce<Self, P>

Like Iterator::take_while, but additionally yields the terminal item.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I: Iterator> Stopper for I