pub struct World { /* private fields */ }
Implementations§
Source§impl World
impl World
pub fn new() -> Self
pub fn spawn(&mut self, entity: Entity)
pub fn query<Q: Query>(&self) -> WorldQuery<'_, Q>
pub fn filter<F: Filter>(&self, filter: F) -> FilteredWorld<'_, F>
pub fn remove<F: Filter>(&mut self, filter: F) -> WorldRemove<'_, F> ⓘ
pub unsafe fn borrow<T: Component>(&self) -> Option<Borrow<'_, T>>
pub unsafe fn borrow_mut<T: Component>(&self) -> Option<BorrowMut<'_, T>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for World
impl !RefUnwindSafe for World
impl !Send for World
impl !Sync for World
impl Unpin for World
impl !UnwindSafe for World
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