Crates.io | linear-deque |
lib.rs | linear-deque |
version | 0.1.2 |
source | src |
created_at | 2023-05-26 22:19:57.953245 |
updated_at | 2023-06-29 21:31:47.049446 |
description | A double-ended queue that can be sliced at any time without preparation. |
homepage | |
repository | https://github.com/erdavila/linear-deque-rs |
max_upload_size | |
id | 875432 |
size | 79,948 |
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.