Function min_index

Source
fn min_index<T, F: FnMut(&T, &T) -> bool>(
    slice: &[T],
    is_less: &mut F,
) -> Option<usize>
🔬This is a nightly-only experimental API. (slice_internals)
Expand description

Helper function that returns the index of the minimum element in the slice using the given comparator function