Function slice_lower_bound

Source
pub fn slice_lower_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