itertools::duplicates_impl::private

Trait 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