binary_search_by
function · ferroui-dynamic-data · v0.5.0
fn binary_search_by<T: Clone + PartialEq, S>(list: &dyn IList<T>, value: &S, comparer: &dyn Fn(&S, &T) -> std::cmp::Ordering) -> Result<usize, usize>
The index of value by a comparison, or the bitwise complement of where it belongs
(ListEx.BinarySearch): Err(index) for the latter.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.