fn new(capacity: Option<usize>) -> Self
fn fetch_by_id(&self, id: EntityId) -> Option<&C>
fn fetch_mut_by_id(&mut self, id: EntityId) -> Option<&mut C>
fn remove(&mut self, id: EntityId)
fn add(&mut self, component: C, id: EntityId)
fn ids_with(&self) -> Vec<EntityId>
fn all(&self) -> Vec<&C>
impl<C: Component> ComponentStorage<C> for SparseStorage<C>
[src]fn new(capacity: Option<usize>) -> Self
[src]fn fetch_by_id(&self, id: EntityId) -> Option<&C>
[src]fn fetch_mut_by_id(&mut self, id: EntityId) -> Option<&mut C>
[src]fn add(&mut self, component: C, id: EntityId)
[src]fn remove(&mut self, id: EntityId)
[src]fn ids_with(&self) -> Vec<EntityId>
[src]fn all(&self) -> Vec<&C>
[src]