queue 0.3.1

Simple wrapper around Vec to provide a FIFO queue.
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented13 out of 13 items with examples
  • Size
  • Source code size: 17.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 466.53 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rascul

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);
}