#upper-bound #ring-buffer #deque #buffer #ring

bounded-vec-deque

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

2 releases

Uses old Rust 2015

0.1.1 Jul 8, 2019
0.1.0 Apr 7, 2019

#2099 in Data structures

Download history 3815/week @ 2024-07-23 5456/week @ 2024-07-30 5237/week @ 2024-08-06 5623/week @ 2024-08-13 6219/week @ 2024-08-20 6249/week @ 2024-08-27 6840/week @ 2024-09-03 6084/week @ 2024-09-10 5654/week @ 2024-09-17 7228/week @ 2024-09-24 8080/week @ 2024-10-01 5793/week @ 2024-10-08 6646/week @ 2024-10-15 6706/week @ 2024-10-22 8417/week @ 2024-10-29 6985/week @ 2024-11-05

29,509 downloads per month
Used in 36 crates (3 directly)

GPL-3.0+ OR BSD-3-Clause

46KB
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.


lib.rs:

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.

Features

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

Features