Struct spirt::EntityOrientedDenseMap
source · pub struct EntityOrientedDenseMap<K: EntityOrientedMapKey<V>, V> { /* private fields */ }Expand description
Map with K keys and V values, that is:
- “entity-oriented”
Kkeys, i.e. that are or contain exactly one entity (supported viaK: EntityOrientedMapKey<V>for extensibility) - “dense” in the sense of few (or no) gaps in (the entities in) its keys
(relative to the entities defined in the corresponding
EntityDefs)
By design there is no way to iterate the entries in an EntityOrientedDenseMap.
Implementations§
source§impl<K: EntityOrientedMapKey<V>, V> EntityOrientedDenseMap<K, V>
impl<K: EntityOrientedMapKey<V>, V> EntityOrientedDenseMap<K, V>
Trait Implementations§
source§impl<K: Clone + EntityOrientedMapKey<V>, V: Clone> Clone for EntityOrientedDenseMap<K, V>where
K::Entity: Clone,
K::DenseValueSlots: Clone,
impl<K: Clone + EntityOrientedMapKey<V>, V: Clone> Clone for EntityOrientedDenseMap<K, V>where K::Entity: Clone, K::DenseValueSlots: Clone,
source§fn clone(&self) -> EntityOrientedDenseMap<K, V>
fn clone(&self) -> EntityOrientedDenseMap<K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<K: EntityOrientedMapKey<V>, V> Default for EntityOrientedDenseMap<K, V>
impl<K: EntityOrientedMapKey<V>, V> Default for EntityOrientedDenseMap<K, V>
source§impl<K: EntityOrientedMapKey<V>, V> Index<K> for EntityOrientedDenseMap<K, V>
impl<K: EntityOrientedMapKey<V>, V> Index<K> for EntityOrientedDenseMap<K, V>
source§impl<K: EntityOrientedMapKey<V>, V> IndexMut<K> for EntityOrientedDenseMap<K, V>
impl<K: EntityOrientedMapKey<V>, V> IndexMut<K> for EntityOrientedDenseMap<K, V>
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for EntityOrientedDenseMap<K, V>where <K as EntityOrientedMapKey<V>>::DenseValueSlots: RefUnwindSafe, <K as EntityOrientedMapKey<V>>::Entity: RefUnwindSafe,
impl<K, V> Send for EntityOrientedDenseMap<K, V>where <K as EntityOrientedMapKey<V>>::DenseValueSlots: Send, <K as EntityOrientedMapKey<V>>::Entity: Send,
impl<K, V> Sync for EntityOrientedDenseMap<K, V>where <K as EntityOrientedMapKey<V>>::DenseValueSlots: Sync, <K as EntityOrientedMapKey<V>>::Entity: Sync,
impl<K, V> Unpin for EntityOrientedDenseMap<K, V>where <K as EntityOrientedMapKey<V>>::DenseValueSlots: Unpin, <K as EntityOrientedMapKey<V>>::Entity: Unpin,
impl<K, V> UnwindSafe for EntityOrientedDenseMap<K, V>where <K as EntityOrientedMapKey<V>>::DenseValueSlots: UnwindSafe, <K as EntityOrientedMapKey<V>>::Entity: 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