linear-deque

Crates.iolinear-deque
lib.rslinear-deque
version0.1.2
sourcesrc
created_at2023-05-26 22:19:57.953245
updated_at2023-06-29 21:31:47.049446
descriptionA double-ended queue that can be sliced at any time without preparation.
homepage
repositoryhttps://github.com/erdavila/linear-deque-rs
max_upload_size
id875432
size79,948
Eduardo R. D'Avila (erdavila)

documentation

README

A double-ended queue that can be sliced at any time without preparation.

LinearDeque vs VecDeque

The standard VecDeque uses a ring buffer. It requires that the make_contiguous method is called to ensure that the deque content can all be referenced in a single slice. make_contiguous is only callable on a mutable instance of the deque.

The LinearDeque provided by this lib uses a linear buffer, keeping all its content contiguous and allowing to have a slice with all the content at any time, even when the deque is not mutable.

Commit count: 16

cargo fmt