#fifo-queue #fifo #vec #capacity #built #optional

deprecated queue

Simple wrapper around Vec to provide a FIFO queue

6 releases

Uses old Rust 2015

0.3.2-final Aug 28, 2019
0.3.1 Aug 27, 2019
0.3.0 Jan 27, 2018
0.2.0 May 29, 2017
0.1.1 Apr 6, 2017

#27 in #fifo-queue

Download history 294/week @ 2024-04-07 225/week @ 2024-04-14 244/week @ 2024-04-21 230/week @ 2024-04-28 340/week @ 2024-05-05 367/week @ 2024-05-12 390/week @ 2024-05-19 255/week @ 2024-05-26 295/week @ 2024-06-02 236/week @ 2024-06-09 376/week @ 2024-06-16 399/week @ 2024-06-23 310/week @ 2024-06-30 358/week @ 2024-07-07 207/week @ 2024-07-14 521/week @ 2024-07-21

1,402 downloads per month
Used in 6 crates (3 directly)

MIT license

13KB
210 lines

Crate Documentation Pipeline Status Coverage MIT License Maintenance

This crate is deprecated and no longer maintained. Use VecDeque (since 2018) if you need something similar. This is the last and final release. (0.3.1).

A FIFO queue built around Vec with an optional capacity.

This project is hosted at Gitlab and the repo is mirrored to Github. Pull requests, issues, etc. will be at Gitlab.

Documentation is located at https://rascul.gitlab.io/queue for master and at at Docs.rs for published releases.

A crate is made available at Crates.io.

use queue::Queue;

let mut q = Queue::new();

q.queue("hello").unwrap();
q.queue("out").unwrap();
q.queue("there!").unwrap();

while let Some(item) = q.dequeue() {
	println!("{}", item);
}

No runtime deps