[][src]Trait mecs::component::Storage

pub trait Storage<'a> {
    type Id;
#[must_use]
    fn id(&self) -> Self::Id;
}

Storage for any number of components

Associated Types

type Id

The type representing a unique id for each component within this storage.

Loading content...

Required methods

#[must_use] fn id(&self) -> Self::Id

Returns the id of the current component within this storage.

Loading content...

Implementors

impl Storage<'static> for DynStorage[src]

type Id = TypeId

Loading content...