Struct Batching
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Batching<I, F> { /* private fields */ }
A “meta iterator adaptor”. Its closure receives a reference to the iterator and may pick off as many elements as it likes, to produce the next iterator element.
Iterator element type is X if the return type of F is Option<X>.
See .batching() for more information.
Trait Implementations
impl<B, F, I> Iterator for Batching<I, F>
where
I: Iterator,
F: FnMut(&mut I) -> Option<B>,
type Item = B;fn next(&mut self) -> Option<Self::Item>
impl<I, F> Debug for Batching<I, F>
where
I: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I: Clone, F: Clone> Clone for Batching<I, F>
fn clone(&self) -> Self