pub struct EntityStore { /* private fields */ }Expand description
A generational Arena that can only store Entities
Implementations§
Source§impl EntityStore
impl EntityStore
pub fn new() -> Self
pub fn set_archetype(&mut self, e: Entity, id: ArchetypeId, row: ArchetypeRow)
pub fn is_alive(&self, e: Entity) -> bool
pub fn get_archetype(&self, e: Entity) -> (ArchetypeId, ArchetypeRow)
pub fn get_archetype_unchecked( &self, id: EntityId, ) -> (ArchetypeId, ArchetypeRow)
Sourcepub fn get_from_id(&self, id: EntityId) -> Entity
pub fn get_from_id(&self, id: EntityId) -> Entity
Returns Entity for EntityId Panics if that Entity is not alive.
Auto Trait Implementations§
impl !Freeze for EntityStore
impl !RefUnwindSafe for EntityStore
impl Send for EntityStore
impl !Sync for EntityStore
impl Unpin for EntityStore
impl UnwindSafe for EntityStore
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