pub struct Queue<T>{ /* private fields */ }
Implementations§
Source§impl<T> Queue<T>
impl<T> Queue<T>
pub fn new_pow2_sized(capacity: usize) -> Self
pub fn is_empty(&self) -> bool
pub fn extend_pow2_sized(&mut self, capacity_pow: usize)
pub fn extend_pow2_sized_by(&mut self, capacity_pow: usize)
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn push(&mut self, value: T)
pub fn front(&self) -> Option<&T>
pub fn front_mut(&mut self) -> Option<&mut T>
pub fn dequeue(&mut self) -> Option<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Queue<T>
impl<T> RefUnwindSafe for Queue<T>where
T: RefUnwindSafe,
impl<T> !Send for Queue<T>
impl<T> !Sync for Queue<T>
impl<T> Unpin for Queue<T>
impl<T> UnwindSafe for Queue<T>where
T: RefUnwindSafe,
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