pub struct StackQueue<T, const N: usize> { /* private fields */ }Implementations§
Source§impl<T, const N: usize> StackQueue<T, N>
impl<T, const N: usize> StackQueue<T, N>
pub const fn new() -> Self
pub const fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub const fn len(&self) -> usize
pub fn front(&self) -> Option<&T>
pub fn front_mut(&mut self) -> Option<&mut T>
pub fn push_back(&mut self, item: T) -> Result<(), PushError<T>>
pub fn pop_front(&mut self) -> Option<T>
pub fn truncate(&mut self, n: usize)
pub fn clear(&mut self)
pub fn iter(&self) -> Iter<'_, T, N>
Trait Implementations§
Source§impl<T, const N: usize> Debug for StackQueue<T, N>
impl<T, const N: usize> Debug for StackQueue<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for StackQueue<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for StackQueue<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for StackQueue<T, N>where
T: Send,
impl<T, const N: usize> Sync for StackQueue<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for StackQueue<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for StackQueue<T, N>where
T: UnwindSafe,
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