upper_bound

Function upper_bound 

Source
pub fn upper_bound(
    range: Range<usize>,
    prop: &dyn Fn(usize) -> bool,
) -> Option<usize>
Expand description

Returns the largest index on [l, r) satisfying the condition.