pub struct EntityOrientedDenseMap<K: EntityOrientedMapKey<V>, V> { /* private fields */ }
Expand description
Map with K
keys and V
values, that is:
- “entity-oriented”
K
keys, 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>
impl<K: Clone + EntityOrientedMapKey<V>, V: Clone> Clone for EntityOrientedDenseMap<K, V>
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> Freeze for EntityOrientedDenseMap<K, V>
impl<K, V> RefUnwindSafe for EntityOrientedDenseMap<K, V>where
<K as EntityOrientedMapKey<V>>::Entity: RefUnwindSafe,
<K as EntityOrientedMapKey<V>>::DenseValueSlots: RefUnwindSafe,
impl<K, V> Send for EntityOrientedDenseMap<K, V>where
<K as EntityOrientedMapKey<V>>::Entity: Send,
<K as EntityOrientedMapKey<V>>::DenseValueSlots: Send,
impl<K, V> Sync for EntityOrientedDenseMap<K, V>where
<K as EntityOrientedMapKey<V>>::Entity: Sync,
<K as EntityOrientedMapKey<V>>::DenseValueSlots: Sync,
impl<K, V> Unpin for EntityOrientedDenseMap<K, V>where
<K as EntityOrientedMapKey<V>>::Entity: Unpin,
<K as EntityOrientedMapKey<V>>::DenseValueSlots: Unpin,
impl<K, V> UnwindSafe for EntityOrientedDenseMap<K, V>where
<K as EntityOrientedMapKey<V>>::Entity: UnwindSafe,
<K as EntityOrientedMapKey<V>>::DenseValueSlots: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more