std.x.deque_int [x] std.x.deque_int.DequeInt pub struct DequeInt { items: List[int], head: int, } — The queue: elements items[head .. std.x.deque_int.new pub fn new() -> DequeInt — A fresh empty queue. std.x.deque_int.len pub fn len(d: DequeInt) -> int — The number of elements. std.x.deque_int.is_empty pub fn is_empty(d: DequeInt) -> bool — Whether the queue holds no elements. std.x.deque_int.push_back pub fn push_back(mut d: DequeInt, v: int) — Appends v at the back. std.x.deque_int.push_front pub fn push_front(mut d: DequeInt, v: int) — Prepends v at the front. std.x.deque_int.front pub fn front(d: DequeInt) -> int ! {none} — The front element, left in place; none when empty. std.x.deque_int.back pub fn back(d: DequeInt) -> int ! {none} — The back element, left in place; none when empty. std.x.deque_int.pop_front pub fn pop_front(mut d: DequeInt) -> int ! {none} — Removes and returns the front element; none when empty. std.x.deque_int.pop_back pub fn pop_back(mut d: DequeInt) -> int ! {none} — Removes and returns the back element; none when empty. std.x.deque_int.clear pub fn clear(mut d: DequeInt) — Empties the queue, keeping it usable, and releases the buffer. std.x.deque_int.to_list pub fn to_list(d: DequeInt) -> List[int] — A fresh list of the elements, FRONT to BACK — the one order this type promises.