pub struct ConstVec<T> { /* private fields */ }Implementations§
Source§impl<T, const N: usize> ConstVec<[T; N]>
impl<T, const N: usize> ConstVec<[T; N]>
pub const fn as_slice(&self) -> &[T]
pub const fn as_slice_mut(&mut self) -> &mut [T]
pub const fn new(len: usize, arr: [T; N]) -> Self
pub const fn len(&self) -> usize
pub const unsafe fn set_len(&mut self, value: usize)
pub const fn push(&mut self, value: &T)
pub const fn append<const N2: usize>(&mut self, target: &ConstVec<[T; N2]>)
pub const fn clone(&self) -> Self
pub const fn pop_last(&mut self) -> &T
pub const fn cutoff_front_at(&self, mid: usize) -> Self
pub const fn get(&self, index: usize) -> &T
pub const fn get_mut(&mut self, index: usize) -> &mut T
pub const unsafe fn set_with_no_drop_on_swap(&mut self, index: usize, value: &T)
pub const fn append_slice(&mut self, slice: &[T])
Trait Implementations§
Source§impl<T: Sized + Copy, const N1: usize, const N2: usize> Add<&ConstVec<[T; N2]>> for &ConstVec<[T; N1]>
impl<T: Sized + Copy, const N1: usize, const N2: usize> Add<&ConstVec<[T; N2]>> for &ConstVec<[T; N1]>
impl<T: Copy> Copy for ConstVec<T>
impl<T: Eq, const N: usize> Eq for ConstVec<[T; N]>
Auto Trait Implementations§
impl<T> Freeze for ConstVec<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstVec<T>where
T: RefUnwindSafe,
impl<T> Send for ConstVec<T>where
T: Send,
impl<T> Sync for ConstVec<T>where
T: Sync,
impl<T> Unpin for ConstVec<T>where
T: Unpin,
impl<T> UnwindSafe for ConstVec<T>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