Struct index_queue::IndexQueue
[−]
[src]
pub struct IndexQueue { /* fields omitted */ }
Methods
impl IndexQueue
[src]
fn is_empty(&self) -> bool
fn contains(&self, index: usize) -> bool
fn remove(&mut self, index: usize) -> bool
fn push_back(&mut self, index: usize) -> bool
Push an index to the back of the queue if it does not already exist. Returns whether the index did not already exist.
fn pop_front(&mut self) -> Option<usize>
Trait Implementations
impl Clone for IndexQueue
[src]
fn clone(&self) -> IndexQueue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for IndexQueue
[src]
fn default() -> IndexQueue
Returns the "default value" for a type. Read more