[][src]Struct dotrix_ecs::World

pub struct World { /* fields omitted */ }

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.