BatchIteratorExt

Trait BatchIteratorExt 

Source
pub trait BatchIteratorExt: Iterator + Sized {
    // Provided method
    fn batches(self, size: usize) -> BatchIterator<Self>  { ... }
}
Expand description

Extension trait for creating batch iterators.

Provided Methods§

Source

fn batches(self, size: usize) -> BatchIterator<Self>

Create batches of specified size.

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§