Struct specs::HashMapStorage [−][src]
pub struct HashMapStorage<T>(_);
Expand description
HashMap
-based storage. Best suited for rare components.
This uses the hashbrown::HashMap internally.
Trait Implementations
Clean the storage given a bitset with bits set for valid indices. Allows us to safely drop the storage. Read more
Tries reading the data associated with an Index
.
This is unsafe because the external set used
to protect this storage is absent. Read more
Tries mutating the data associated with an Index
.
This is unsafe because the external set used
to protect this storage is absent. Read more
Removes the data associated with an Index
. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for HashMapStorage<T> where
T: RefUnwindSafe,
impl<T> Send for HashMapStorage<T> where
T: Send,
impl<T> Sync for HashMapStorage<T> where
T: Sync,
impl<T> Unpin for HashMapStorage<T> where
T: Unpin,
impl<T> UnwindSafe for HashMapStorage<T> where
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
Tries to create the default.
Calls try_default
and panics on an error case.