collect_duplicates

Function collect_duplicates 

Source
fn collect_duplicates<'a, T>(data: impl Iterator<Item = &'a T>) -> Vec<&'a T>
where T: Eq + Hash + Ord + 'a,
Expand description

Collects all duplicate items from an Iterator of type T.