pub fn binary_search(&self, x: &T) -> Result<usize, usize>
    where
        T: Ord,
    {
        self.binary_search_by(|e| e.cmp(x))
    }
Binary searches this sorted `VecDeque` with a key extraction function.

Assumes that the `VecDeque` is sorted by the key, for instance with
[`make_contiguous().sort_by_key()`] using the same key extraction function.

If the value is found then [`Result::Ok`]
benchmarks/haystacks/code/rust-library.rs