# VecDeque: binary search fns

**URL:** <https://internals.rust-lang.org/t/vecdeque-binary-search-fns/13132>\
**Category:** Uncategorized\
**Created:** [September 25, 2020, 8:45pm UTC](https://internals.rust-lang.org/t/vecdeque-binary-search-fns/13132 "2020-09-25T20:45:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vojtechkral](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/vojtechkral/32/605_2.png) [@vojtechkral](https://internals.rust-lang.org/u/vojtechkral)\
**Post date:** [September 26, 2020, 8:39pm UTC](https://internals.rust-lang.org/t/vecdeque-binary-search-fns/13132/3 "2020-09-26T20:39:32Z")

</div>

> [@scottmcm](#):
>
> Should be able to do it on `VecDeque::as_slices` so it does one comparison then delegates to the slice version.

Yeah, that's exactly how my extension works currently 🙂

---

_[View the full topic](https://internals.rust-lang.org/t/vecdeque-binary-search-fns/13132)._
