pub struct EntityPartMap<I: EntityId, V: EntityKey, RS: BuildHasher = RandomState> { /* private fields */ }Implementations§
Source§impl<I: EntityId, V: EntityKey> EntityPartMap<I, V, RandomState>
impl<I: EntityId, V: EntityKey> EntityPartMap<I, V, RandomState>
pub fn new() -> Self
pub fn with_capacity(n: usize) -> Self
Source§impl<I: EntityId, V: EntityKey, RS: BuildHasher> EntityPartMap<I, V, RS>
impl<I: EntityId, V: EntityKey, RS: BuildHasher> EntityPartMap<I, V, RS>
pub fn with_hasher(h: RS) -> Self
pub fn with_capacity_and_hasher(n: usize, h: RS) -> Self
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn get<Q>(&self, key: &Q) -> Option<(I, &V)>
pub fn get_mut<Q>(&mut self, key: &Q) -> Option<(I, &mut V)>
pub fn get_id(&self, id: I) -> Option<&V>
pub fn get_mut_id(&mut self, id: I) -> Option<&mut V>
pub fn contains_id(&self, id: I) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn insert(&mut self, id: I, v: V) -> Result<(), DuplicateKeyError>
pub fn remove(&mut self, id: I) -> Option<V>
pub fn iter(&self) -> Iter<'_, I, V> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, I, V> ⓘ
pub fn ids(&self) -> Ids<'_, I, V> ⓘ
pub fn into_ids(self) -> IntoIds<I, V> ⓘ
pub fn values(&self) -> Values<'_, I, V> ⓘ
pub fn values_mut(&mut self) -> ValuesMut<'_, I, V> ⓘ
pub fn into_values(self) -> IntoValues<I, V> ⓘ
pub fn map<O>(&self, f: impl FnMut(I, &V) -> O) -> EntityPartVec<I, O>
pub fn map_values<O>(&self, f: impl FnMut(&V) -> O) -> EntityPartVec<I, O>
Trait Implementations§
Source§impl<I: Clone + EntityId, V: Clone + EntityKey, RS: Clone + BuildHasher> Clone for EntityPartMap<I, V, RS>
impl<I: Clone + EntityId, V: Clone + EntityKey, RS: Clone + BuildHasher> Clone for EntityPartMap<I, V, RS>
Source§impl<I, V, RS> Debug for EntityPartMap<I, V, RS>
impl<I, V, RS> Debug for EntityPartMap<I, V, RS>
Source§impl<I: EntityId, V: EntityKey> Default for EntityPartMap<I, V, RandomState>
impl<I: EntityId, V: EntityKey> Default for EntityPartMap<I, V, RandomState>
impl<I, V, RS> Eq for EntityPartMap<I, V, RS>
Source§impl<I: EntityId, V: EntityKey, RS: BuildHasher> Index<I> for EntityPartMap<I, V, RS>
impl<I: EntityId, V: EntityKey, RS: BuildHasher> Index<I> for EntityPartMap<I, V, RS>
Source§impl<I: EntityId, V: EntityKey, RS: BuildHasher> IndexMut<I> for EntityPartMap<I, V, RS>
impl<I: EntityId, V: EntityKey, RS: BuildHasher> IndexMut<I> for EntityPartMap<I, V, RS>
Source§impl<I: EntityId, V: EntityKey, RS: BuildHasher> IntoIterator for EntityPartMap<I, V, RS>
impl<I: EntityId, V: EntityKey, RS: BuildHasher> IntoIterator for EntityPartMap<I, V, RS>
Source§impl<'a, I: EntityId, V: EntityKey, RS: BuildHasher> IntoIterator for &'a EntityPartMap<I, V, RS>
impl<'a, I: EntityId, V: EntityKey, RS: BuildHasher> IntoIterator for &'a EntityPartMap<I, V, RS>
Source§impl<'a, I: EntityId, V: EntityKey, RS: BuildHasher> IntoIterator for &'a mut EntityPartMap<I, V, RS>
impl<'a, I: EntityId, V: EntityKey, RS: BuildHasher> IntoIterator for &'a mut EntityPartMap<I, V, RS>
Source§impl<I, V, RS, RS2> PartialEq<EntityPartMap<I, V, RS2>> for EntityPartMap<I, V, RS>
impl<I, V, RS, RS2> PartialEq<EntityPartMap<I, V, RS2>> for EntityPartMap<I, V, RS>
Auto Trait Implementations§
impl<I, V, RS> Freeze for EntityPartMap<I, V, RS>where
RS: Freeze,
impl<I, V, RS> RefUnwindSafe for EntityPartMap<I, V, RS>
impl<I, V, RS> Send for EntityPartMap<I, V, RS>
impl<I, V, RS> Sync for EntityPartMap<I, V, RS>
impl<I, V, RS> Unpin for EntityPartMap<I, V, RS>
impl<I, V, RS> UnsafeUnpin for EntityPartMap<I, V, RS>where
RS: UnsafeUnpin,
impl<I, V, RS> UnwindSafe for EntityPartMap<I, V, RS>
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.