queue 0.2.0

Simple wrapper around Vec to provide a FIFO queue.
Documentation

Crate Documentation Build Status

A FIFO queue built around Vec with an optional capacity.

Documentation

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