Trait itertools::groupbylazy::KeyFunction

source ·
trait KeyFunction<A> {
    type Key;

    // Required method
    fn call_mut(&mut self, arg: A) -> Self::Key;
}
Expand description

A trait to unify FnMut for ChunkBy with the chunk key in IntoChunks

Required Associated Types§

Required Methods§

source

fn call_mut(&mut self, arg: A) -> Self::Key

Implementors§

source§

impl<A> KeyFunction<A> for ChunkIndex

§

type Key = usize

source§

impl<A, K, F> KeyFunction<A> for F
where F: FnMut(A) -> K + ?Sized,

§

type Key = K