Macro stdlib_rs::queue[][src]

macro_rules! queue {
    ($($e : expr), *) => { ... };
}
Expand description

Create a new Queue with the elements inside the macro. Works like the vec![] macro.

Examples

let queue = queue![1, 2, 3];
let empty: Queue<i32> = queue![];
let mut other = Queue::new();
other.push(1);
other.push(2);
other.push(3);
assert_eq!(queue, other);
assert_eq!(empty, Queue::new());