Skip to main content

ItemQueue

Trait ItemQueue 

Source
pub trait ItemQueue<I> {
    // Required methods
    fn len(&self) -> usize;
    fn clear(&mut self);
    fn push(&mut self, u: I);
    fn pop(&mut self) -> Option<I>;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn clear(&mut self)

Source

fn push(&mut self, u: I)

Source

fn pop(&mut self) -> Option<I>

Provided Methods§

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, I, D> ItemQueue<I> for &'a mut D
where D: ItemQueue<I>,

Source§

fn is_empty(&self) -> bool

Source§

fn len(&self) -> usize

Source§

fn clear(&mut self)

Source§

fn push(&mut self, u: I)

Source§

fn pop(&mut self) -> Option<I>

Source§

impl<I> ItemQueue<I> for VecDeque<I>

Source§

fn is_empty(&self) -> bool

Source§

fn len(&self) -> usize

Source§

fn clear(&mut self)

Source§

fn push(&mut self, u: I)

Source§

fn pop(&mut self) -> Option<I>

Implementors§