pub struct FaVec<T, const BLOCK_SIZE: usize> { /* private fields */ }
Implementations§
Source§impl<T, const BLOCK_SIZE: usize> FaVec<T, BLOCK_SIZE>
impl<T, const BLOCK_SIZE: usize> FaVec<T, BLOCK_SIZE>
pub fn new() -> Self
pub fn push(&mut self, val: T) -> FaVecIndex
pub fn get(&self, index: &FaVecIndex) -> Option<&T>
pub fn get_mut(&mut self, index: &FaVecIndex) -> Option<&mut T>
pub fn remove(&mut self, index: &FaVecIndex) -> Option<T>
pub fn capacity(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<T, const BLOCK_SIZE: usize> Freeze for FaVec<T, BLOCK_SIZE>
impl<T, const BLOCK_SIZE: usize> RefUnwindSafe for FaVec<T, BLOCK_SIZE>where
T: RefUnwindSafe,
impl<T, const BLOCK_SIZE: usize> Send for FaVec<T, BLOCK_SIZE>where
T: Send,
impl<T, const BLOCK_SIZE: usize> Sync for FaVec<T, BLOCK_SIZE>where
T: Sync,
impl<T, const BLOCK_SIZE: usize> Unpin for FaVec<T, BLOCK_SIZE>
impl<T, const BLOCK_SIZE: usize> UnwindSafe for FaVec<T, BLOCK_SIZE>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