#deque #ring #buffer


A double-ended queue|ringbuffer with an upper bound on its length

2 releases

0.1.1 Jul 8, 2019
0.1.0 Apr 7, 2019

#658 in Data structures

GPL-3.0+ OR BSD-3-Clause

422 lines

bounded-vec-deque provides a VecDeque wrapper with an upper bound on the length.

See the type-level documentation on the docs.rs. website (or in src/lib.rs if you prefer) for more information. Source code, revision history, and issue tracking are available on the gitlab.com. website. bounded-vec-deque releases are additionally published on crates.io..

Caveats Up Front

bounded-vec-deque requires Rust 1.28.0 (released 2018-08-02) or later.


A double-ended queue|ringbuffer with an upper bound on its length.

The primary item of interest in this crate is the BoundedVecDeque type, which is the double-ended q.r. with an etc. that was mentioned above.

This crate requires Rust 1.28.0 or later.

Much of the documentation of this crate was copied (with some modifications) from the VecDeque documentation and other documentation of the Rust standard library.


The following crate features exist:

  • fused (enabled by default): Implements FusedIterator for the various iterator types.
  • resize_with (requires Rust 1.33): Adds resize_with().

No runtime deps