pub struct IdVec<K, V> { /* private fields */ }
Expand description
Vec wrapper that uses typed indexes.
Implementations§
Source§impl<K, V> IdVec<K, V>
impl<K, V> IdVec<K, V>
Sourcepub fn with_capacity(cap: usize) -> Self
pub fn with_capacity(cap: usize) -> Self
Create a new IdVec
with the given capacity.
Trait Implementations§
impl<K: Eq, V: Eq> Eq for IdVec<K, V>
impl<K, V> StructuralPartialEq for IdVec<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for IdVec<K, V>
impl<K, V> RefUnwindSafe for IdVec<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for IdVec<K, V>
impl<K, V> Sync for IdVec<K, V>
impl<K, V> Unpin for IdVec<K, V>
impl<K, V> UnwindSafe for IdVec<K, V>where
K: UnwindSafe,
V: 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