fn min_max_by_key<T: Copy, K: Copy + Ord, const LANES: usize>(
values: &[T],
key: impl Fn(T) -> K,
key_min: K,
key_max: K,
) -> Option<(K, K)>Expand description
Returns the minimum and maximum of values after mapping them with key,
or None if values is empty.