BinarySearch

Trait BinarySearch 

Source
pub trait BinarySearch<T> {
    // Required method
    fn binary_search(&self, x: &T) -> Result<usize, usize>;
}

Required Methods§

Binary search for a given element.

The semantics of this function are identical to Rust’s std::slice::binary_search.

Implementors§