Queue
Associated Functions for the Queue type
Built-in associated functions for the Queue<T, N> type.
A FIFO (first-in, first-out) queue with fixed capacity using a circular buffer.
Queue Operations
enqueue
fn enqueue(mut self, element: T)
Adds an element to the back of the queue.
dequeue
fn dequeue(mut self) -> T
Removes and returns the element at the front of the queue.
clear
fn clear(mut self)
Removes all elements from the queue.
For additional associated functions like len, is_empty, filter, find, etc., see Sequential associated functions.