Function rstats::vecvec::memsearchdesc_indexed
source · [−]pub fn memsearchdesc_indexed<T>(s: &[T], i: &[usize], val: T) -> Option<usize> where
T: PartialOrd<T>,
Expand description
Binary search of an indexed list (in descending order).
Returns Some(index)
of any item that is
neither smaller nor greater than val.
When none are found, returns None
.
Example use: membership of an indexed descending set.