pub struct SlotVec<T> { /* private fields */ }Implementations§
Source§impl<T> SlotVec<T>
impl<T> SlotVec<T>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn insert(&mut self, value: T) -> Key
pub fn remove(&mut self, key: Key) -> Option<T>
pub fn get(&self, key: &Key) -> Option<&T>
pub fn get_mut(&mut self, key: &Key) -> Option<&mut T>
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn len(&self) -> usize
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SlotVec<T>
impl<T> RefUnwindSafe for SlotVec<T>where
T: RefUnwindSafe,
impl<T> Send for SlotVec<T>where
T: Send,
impl<T> Sync for SlotVec<T>where
T: Sync,
impl<T> Unpin for SlotVec<T>where
T: Unpin,
impl<T> UnwindSafe for SlotVec<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