[−][src]Struct dotrix_ecs::World
World implements a container for Systems, Entities and their Components and quering functionality
Implementations
impl World
[src]
pub fn new() -> Self
[src]
Create new empty World instance
pub fn spawn<T, I>(&mut self, iter: I) where
T: Archetype + Pattern,
I: IntoIterator<Item = T>,
[src]
T: Archetype + Pattern,
I: IntoIterator<Item = T>,
Spawn single or multiple entities in the world
pub fn query<'w, Q>(
&'w self
) -> impl Iterator<Item = <<Q as Query<'_>>::Iter as Iterator>::Item> + 'w where
Q: Query<'w>,
[src]
&'w self
) -> impl Iterator<Item = <<Q as Query<'_>>::Iter as Iterator>::Item> + 'w where
Q: Query<'w>,
Query stored components in the World
Auto Trait Implementations
impl !RefUnwindSafe for World
impl !Send for World
impl !Sync for World
impl Unpin for World
impl !UnwindSafe for World
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,