Function core::slice::select::median_idx
source · fn median_idx<T, F: FnMut(&T, &T) -> bool>(
v: &[T],
is_less: &mut F,
a: usize,
b: usize,
c: usize
) -> usize
Expand description
returns the index pointing to the median of the 3
elements v[a]
, v[b]
and v[c]