Trait kernel::common::Queue[][src]

pub trait Queue<T> {
    fn has_elements(&self) -> bool;
fn is_full(&self) -> bool;
fn len(&self) -> usize;
fn enqueue(&mut self, val: T) -> bool;
fn dequeue(&mut self) -> Option<T>;
fn empty(&mut self); }

Required Methods

Remove all elements from the ring buffer.

Implementors