common:: queue:: Queue
fn has_elements(&self) -> bool
Returns true if there are any items in the queue, false otherwise.
fn is_full(&self) -> bool
Returns true if the queue is full, false otherwise.
fn len(&self) -> usize
Returns how many elements are in the queue.
fn enqueue(&mut self, val: T) -> bool
If the queue isn't full, add a new element to the back of the queue. Returns whether the element was added.
Add a new element to the back of the queue, poping one from the front if necessary.
Remove the element from the front of the queue.
fn empty(&mut self)
Remove all elements from the ring buffer.
Retains only the elements that satisfy the predicate.