Function on

Source
pub fn on<T, K, R>(
    access: impl Fn(&T) -> K,
    cmp: impl Fn(K, K) -> R,
) -> impl Fn(&T, &T) -> R