[][src]Struct legion_systems::System

pub struct System<R, Q, F> where
    R: ResourceSet,
    Q: QuerySet,
    F: SystemFn<Resources = <R as ResourceSet>::PreparedResources, Queries = Q>, 
{ /* fields omitted */ }

The concrete type which contains the system closure provided by the user. This struct should not be instantiated directly, and instead should be created using SystemBuilder.

Implements Schedulable which is consumable by the StageExecutor, executing the closure.

Also handles caching of archetype information in a BitSet, as well as maintaining the provided information about what queries this system will run and, as a result, its data access.

Queries are stored generically within this struct, and the SystemQuery types are generated on each run call, wrapping the world and providing the set to the user in their closure.

Trait Implementations

impl<R, Q, F> Runnable for System<R, Q, F> where
    R: ResourceSet,
    Q: QuerySet,
    F: SystemFn<Resources = <R as ResourceSet>::PreparedResources, Queries = Q>, 
[src]

Auto Trait Implementations

impl<R, Q, F> !RefUnwindSafe for System<R, Q, F>

impl<R, Q, F> Send for System<R, Q, F> where
    F: Send

impl<R, Q, F> Sync for System<R, Q, F> where
    F: Sync

impl<R, Q, F> Unpin for System<R, Q, F> where
    F: Unpin,
    Q: Unpin,
    R: Unpin

impl<R, Q, F> !UnwindSafe for System<R, Q, F>

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> Component for T where
    T: 'static + Send + Sync
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

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

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T> Schedulable for T where
    T: Runnable + Send + Sync
[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.