pub struct IndexQueue { /* private fields */ }
Implementations§
Source§impl IndexQueue
impl IndexQueue
pub fn is_empty(&self) -> bool
pub fn contains(&self, index: usize) -> bool
pub fn remove(&mut self, index: usize) -> bool
Sourcepub fn push_back(&mut self, index: usize) -> bool
pub 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.
pub fn pop_front(&mut self) -> Option<usize>
Trait Implementations§
Source§impl Clone for IndexQueue
impl Clone for IndexQueue
Source§fn clone(&self) -> IndexQueue
fn clone(&self) -> IndexQueue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndexQueue
impl Debug for IndexQueue
Source§impl Default for IndexQueue
impl Default for IndexQueue
Source§fn default() -> IndexQueue
fn default() -> IndexQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexQueue
impl RefUnwindSafe for IndexQueue
impl Send for IndexQueue
impl Sync for IndexQueue
impl Unpin for IndexQueue
impl UnwindSafe for IndexQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more