pub struct GenerationalArray<ValueType> { /* private fields */ }Implementations§
Source§impl<ValueType> GenerationalArray<ValueType>
impl<ValueType> GenerationalArray<ValueType>
pub fn new() -> GenerationalArray<ValueType>
pub fn insert(&mut self, value: ValueType) -> GenerationalIndex
pub fn remove(&mut self, index: GenerationalIndex) -> Result<(), &'static str>
pub fn get( &self, index: &GenerationalIndex, ) -> GenerationalArrayResult<'_, ValueType>
pub fn get_mut( &mut self, index: &GenerationalIndex, ) -> GenerationalArrayResultMut<'_, ValueType>
pub fn is_empty(&self) -> bool
pub fn size(&self) -> usize
pub fn used_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<ValueType> Freeze for GenerationalArray<ValueType>
impl<ValueType> RefUnwindSafe for GenerationalArray<ValueType>where
ValueType: RefUnwindSafe,
impl<ValueType> Send for GenerationalArray<ValueType>where
ValueType: Send,
impl<ValueType> Sync for GenerationalArray<ValueType>where
ValueType: Sync,
impl<ValueType> Unpin for GenerationalArray<ValueType>where
ValueType: Unpin,
impl<ValueType> UnwindSafe for GenerationalArray<ValueType>where
ValueType: 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