Struct fixed_queue::VecDeque
source · [−]pub struct VecDeque<T, const N: usize> { /* private fields */ }
Implementations
sourceimpl<T, const N: usize> VecDeque<T, N>
impl<T, const N: usize> VecDeque<T, N>
pub const fn new() -> Self
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn get(&self, index: usize) -> Option<&T>
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
pub fn as_slices(&self) -> (&[T], &[T])
pub fn as_mut_slices(&mut self) -> (&mut [T], &mut [T])
pub fn clear(&mut self)
pub fn pop_front(&mut self) -> Option<T>
pub fn pop_back(&mut self) -> Option<T>
pub fn push_front(&mut self, value: T) -> Result<(), T>
pub fn push_back(&mut self, value: T) -> Result<(), T>
Trait Implementations
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for VecDeque<T, N> where
T: RefUnwindSafe,
impl<T, const N: usize> Send for VecDeque<T, N> where
T: Send,
impl<T, const N: usize> Sync for VecDeque<T, N> where
T: Sync,
impl<T, const N: usize> Unpin for VecDeque<T, N> where
T: Unpin,
impl<T, const N: usize> UnwindSafe for VecDeque<T, N> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more