pub type EventsSystemResources<'a, T> = (WorldRef, Comp<&'a mut Events<T>>);

Trait Implementations§

source§

impl<A, B> AccessType for (A, B)where A: AccessType, B: AccessType,

source§

fn feed_types(reads: &mut HashSet<TypeId>, writes: &mut HashSet<TypeId>)

source§

fn get_types() -> (HashSet<TypeId>, HashSet<TypeId>)

([reads], [writes])
source§

impl<B, A> DynamicBundle for (B, A)where B: Component, A: Component,

source§

fn has<T>(&self) -> boolwhere T: Component,

Checks if the Bundle contains the given T: Read more
source§

impl<B, A> Fetch for (B, A)where B: Fetch, A: Fetch,

§

type State = (<B as Fetch>::State, <A as Fetch>::State)

The type of the data which can be cached to speed up retrieving the relevant type states from a matching Archetype
source§

fn dangling() -> (B, A)

A value on which get may never be called
source§

fn access(archetype: &Archetype) -> Option<Access>

How this query will access archetype, if at all
source§

fn borrow(archetype: &Archetype, state: <(B, A) as Fetch>::State)

Acquire dynamic borrows from archetype
source§

fn prepare(archetype: &Archetype) -> Option<<(B, A) as Fetch>::State>

Look up state for archetype if it should be traversed
source§

fn execute(archetype: &Archetype, state: <(B, A) as Fetch>::State) -> (B, A)

Construct a Fetch for archetype based on the associated state
source§

fn release(archetype: &Archetype, state: <(B, A) as Fetch>::State)

Release dynamic borrows acquired by borrow
source§

fn for_each_borrow(f: impl FnMut(TypeId, bool))

Invoke f for every component type that may be borrowed and whether the borrow is unique
source§

impl<B, A> Query for (B, A)where B: Query, A: Query,

§

type Item<'q> = (<B as Query>::Item<'q>, <A as Query>::Item<'q>)

Type of results yielded by the query Read more
source§

impl<A, B> ResQuery for (A, B)where A: ResQuery, B: ResQuery,

§

type Fetch = (<A as ResQuery>::Fetch, <B as ResQuery>::Fetch)

source§

fn fetch(universe: &Universe) -> Self::Fetch

source§

impl<B, A> Bundle for (B, A)where B: Component, A: Component,

source§

impl<B, A> DynamicBundleClone for (B, A)where B: Component + Clone, A: Component + Clone,

source§

impl<B, A> QueryShared for (B, A)where B: QueryShared, A: QueryShared,

source§

impl<A, B> ResAccess for (A, B)where A: ResAccess, B: ResAccess,