Trait Storage
mecs::component
pub trait Storage<'a> { type Id; #[must_use] fn id(&self) -> Self::Id; }
Storage for any number of components
type Id
The type representing a unique id for each component within this storage.
#[must_use] fn id(&self) -> Self::Id
Returns the id of the current component within this storage.
impl Storage<'static> for DynStorage
type Id = TypeId