Skip to main content

upper_bound

Function upper_bound 

Source
pub fn upper_bound<T: Ord>(s: &[T], target: &T) -> usize
Expand description

Find the upper bound index for target in a sorted slice.

Returns the index of the first element > target.