#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

#1972 in Data structures

Download history 2840/week @ 2024-03-14 3868/week @ 2024-03-21 3285/week @ 2024-03-28 3212/week @ 2024-04-04 3261/week @ 2024-04-11 2537/week @ 2024-04-18 3148/week @ 2024-04-25 2811/week @ 2024-05-02 3012/week @ 2024-05-09 2867/week @ 2024-05-16 2810/week @ 2024-05-23 3222/week @ 2024-05-30 2834/week @ 2024-06-06 3919/week @ 2024-06-13 4150/week @ 2024-06-20 3130/week @ 2024-06-27

14,594 downloads per month
Used in 20 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