pub struct Galaxy { /* private fields */ }Implementations§
Source§impl Galaxy
impl Galaxy
pub fn insert_entity(&self) -> EntityGetter<'_, ()>
pub fn get_entity( &self, entity: Entity, ) -> Option<EntityGetter<'_, EntityModifyOnlyImpl>>
pub fn remove_entity(&self, e: Entity)
pub fn get_entities(&self) -> Vec<Entity>
Source§impl Galaxy
impl Galaxy
pub fn insert_event<E>(&self, e: E) -> &Galaxywhere
E: Event + 'static,
pub fn get_events<E>(&self) -> &[E]where
E: Event + 'static,
Source§impl Galaxy
impl Galaxy
pub fn insert_resource<R, RH>(&self, rh: RH, r: R) -> &Galaxy
pub fn remove_resource<R, RH>(&self, rh: RH) -> &Galaxy
pub fn get_resource<R, RH>(&self, rh: RH) -> Option<ResourceReadGuard<'_, R>>
pub fn get_mut_resource<R, RH>( &self, rh: RH, ) -> Option<ResourceWriteGuard<'_, R>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Galaxy
impl !RefUnwindSafe for Galaxy
impl Send for Galaxy
impl Sync for Galaxy
impl Unpin for Galaxy
impl UnwindSafe for Galaxy
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