DedupByKeyAdapter

Trait DedupByKeyAdapter 

Source
pub trait DedupByKeyAdapter<F, K>: Iterator {
    // Provided method
    fn dedup_by_key(self, key: F) -> DedupByKey<Self, F, K> 
       where Self: Sized,
             F: Fn(&Self::Item) -> K { ... }
}
Expand description

Provides the dedup_by_key method on Iterators.

Provided Methods§

Source

fn dedup_by_key(self, key: F) -> DedupByKey<Self, F, K>
where Self: Sized, F: Fn(&Self::Item) -> K,

Implementors§

Source§

impl<I, F, K> DedupByKeyAdapter<F, K> for I
where I: Iterator,