Function slice_upper_bound

Source
pub fn slice_upper_bound<T: PartialOrd>(slice: &[T], key: &T) -> usize
Expand description

Assuming slice is sorted and totally ordered, returns the minimum i for which slice[i] > key, or slice.len() if no such i exists