trait KeyFunction<A> {
    type Key;

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

A trait to unify FnMut for GroupBy 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 Fwhere F: FnMut(A) -> K + ?Sized,

§

type Key = K