pub trait BinarySearch<T> { fn binary_search(&self, x: &T) -> Result<usize, usize>; }
Binary search for a given element.
The semantics of this function are identical to Rust’s std::slice::binary_search.
std::slice::binary_search