pub struct FixedVec<T: Default + Copy, const N: usize> { /* private fields */ }
Trait Implementations§
source§impl<T: Default + Copy, const N: usize> IVec<T> for FixedVec<T, N>
impl<T: Default + Copy, const N: usize> IVec<T> for FixedVec<T, N>
fn push(&mut self, t: T) -> (&mut T, usize)
fn pop(&mut self)
fn top(&self) -> Option<&T>
fn top_mut(&mut self) -> Option<&mut T>
fn capacity(&self) -> usize
fn len(&self) -> usize
fn clear(&mut self)
fn as_slice(&self) -> &[T]
fn as_slice_mut(&mut self) -> &mut [T]
fn get(&self, index: usize) -> &T
fn get_mut(&mut self, index: usize) -> &mut T
fn reverse(&mut self)
fn append(&mut self, other: &[T])
Auto Trait Implementations§
impl<T, const N: usize> RefUnwindSafe for FixedVec<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for FixedVec<T, N>where
T: Send,
impl<T, const N: usize> Sync for FixedVec<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for FixedVec<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for FixedVec<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