[]Struct acute_ecs::systems::System

pub struct System<R, Q, F> where
    F: SystemFn<Resources = <R as ResourceSet>::PreparedResources, Queries = Q>,
    Q: QuerySet,
    R: ResourceSet
{ /* 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
    F: SystemFn<Resources = <R as ResourceSet>::PreparedResources, Queries = Q>,
    Q: QuerySet,
    R: ResourceSet

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

impl<T> Downcast for T where
    T: Any

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

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

impl<T> Schedulable for T where
    T: Runnable + Send + Sync

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.