#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

#1384 in Data structures

Download history 2070/week @ 2023-12-02 2520/week @ 2023-12-09 1248/week @ 2023-12-16 800/week @ 2023-12-23 1290/week @ 2023-12-30 2578/week @ 2024-01-06 2482/week @ 2024-01-13 2709/week @ 2024-01-20 2718/week @ 2024-01-27 2393/week @ 2024-02-03 2254/week @ 2024-02-10 2173/week @ 2024-02-17 2058/week @ 2024-02-24 4081/week @ 2024-03-02 2050/week @ 2024-03-09 2727/week @ 2024-03-16

11,313 downloads per month
Used in 19 crates (2 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