pub struct Entities { /* private fields */ }
Implementations§
Source§impl Entities
impl Entities
pub fn new() -> Self
pub fn spawn_empty(&mut self) -> EntityId
pub fn spawn(&mut self, archetype_id: ArchetypeId) -> EntityId
pub fn modify(&mut self, entity_id: EntityId, archetype_id: ArchetypeId)
pub fn get(&self, entity_id: &EntityId) -> Option<ArchetypeId>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entities
impl RefUnwindSafe for Entities
impl Send for Entities
impl Sync for Entities
impl Unpin for Entities
impl UnwindSafe for Entities
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