Trait itertools::duplicates_impl::private::KeyMethod

source ·
pub trait KeyMethod<K, V> {
    type Container: KeyXorValue<K, V>;

    // Required method
    fn make(&mut self, value: V) -> Self::Container;
}
Expand description

A keying method for use with DuplicatesBy

Required Associated Types§

Required Methods§

source

fn make(&mut self, value: V) -> Self::Container

Implementors§

source§

impl<K, V, F> KeyMethod<K, V> for ByFn<F>
where F: FnMut(&V) -> K,

source§

impl<V> KeyMethod<V, V> for ById