stdlib_rs/collections/
stack_with_queue.rs

1use std::collections::VecDeque;
2
3pub struct Stack<T>(VecDeque<T>, VecDeque<T>);
4
5// use two queues for a stack.
6// enqueue to the first stack, dequeue off the second.