[−][src]Trait amethyst_rendy::batch::GroupIterator
Iterator trait for grouping iterated 2-tuples (K, V)
by contiguous ranges with equal K
,
providing access in a group-by-group manner.
Required methods
fn for_each_group<F>(self, on_group: F) where
F: FnMut(K, &mut Vec<V>),
F: FnMut(K, &mut Vec<V>),
Perform grouping. Evaluates passed closure on every next countiguous list of data with same group identifier.
Implementors
impl<K, V, I> GroupIterator<K, V> for I where
K: PartialEq,
I: Iterator<Item = (K, V)>,
[src]
K: PartialEq,
I: Iterator<Item = (K, V)>,
fn for_each_group<F>(self, on_group: F) where
F: FnMut(K, &mut Vec<V>),
[src]
F: FnMut(K, &mut Vec<V>),