[][src]Trait amethyst_rendy::batch::GroupIterator

pub trait GroupIterator<K, V> where
    Self: Iterator<Item = (K, V)> + Sized,
    K: PartialEq
{ fn for_each_group<F>(self, on_group: F)
    where
        F: FnMut(K, &mut Vec<V>)
; }

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>), 

Perform grouping. Evaluates passed closure on every next countiguous list of data with same group identifier.

Loading content...

Implementors

impl<K, V, I> GroupIterator<K, V> for I where
    K: PartialEq,
    I: Iterator<Item = (K, V)>, 
[src]

Loading content...