[][src]Function bisection::insort_right_slice

pub fn insort_right_slice<T, I>(a: &mut Vec<T>, x: T, within: I) where
    I: RangeBounds<usize>,
    T: Ord

Insert x in a[within], keeping it sorted assuming a is sorted.

If a contains x, insert it just after the rightmost occurence of x.

Panics

Panics if within is out of bounds of a.