Trait WorldQuery

Source
pub unsafe trait WorldQuery {
    type Item<'w>;
    type Fetch<'w>;
    type State: Send + Sync + Sized;
    type ReadOnly: ReadOnlyWorldQuery<State = Self::State>;

    // Required methods
    unsafe fn init_fetch<'w>(
        world: &'w World,
        state: &Self::State,
        last_change_tick: u32,
        change_tick: u32,
    ) -> Self::Fetch<'w>;
    unsafe fn fetch<'w>(
        fetch: &mut Self::Fetch<'w>,
        entity: Entity,
    ) -> Self::Item<'w>;
    fn init_state(world: &mut World) -> Self::State;
    fn update_component_access(
        state: &Self::State,
        access: &mut FilteredAccess<ComponentId>,
    );

    // Provided method
    unsafe fn filter_fetch<'w>(
        _fetch: &mut Self::Fetch<'w>,
        _entity: Entity,
    ) -> bool { ... }
}

Required Associated Types§

Required Methods§

Source

unsafe fn init_fetch<'w>( world: &'w World, state: &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

§Safety
Source

unsafe fn fetch<'w>( fetch: &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Fetch a single item from the given fetch and entity.

Source

fn init_state(world: &mut World) -> Self::State

Initialize the state required to fetch this query.

Source

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Update the component access for this query.

Provided Methods§

Source

unsafe fn filter_fetch<'w>( _fetch: &mut Self::Fetch<'w>, _entity: Entity, ) -> bool

Fetches the filter for this query.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WorldQuery for ()

Source§

type Item<'w> = ()

Source§

type Fetch<'w> = ()

Source§

type State = ()

Source§

type ReadOnly = ()

Source§

unsafe fn init_fetch<'w>( world: &'w World, (): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>((): &mut Self::Fetch<'w>, entity: Entity) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>((): &mut Self::Fetch<'w>, entity: Entity) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<'a, T: Component> WorldQuery for &'a mut T

Source§

type Item<'w> = Mut<'w, T>

Source§

type Fetch<'w> = WriteFetch<'w, T>

Source§

type State = ComponentId

Source§

type ReadOnly = &'a T

Source§

unsafe fn init_fetch<'w>( world: &'w World, state: &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( fetch: &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<A: WorldQuery, B: WorldQuery, C: WorldQuery, D: WorldQuery, E: WorldQuery, F: WorldQuery, G: WorldQuery, H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

type Item<'w> = (<A as WorldQuery>::Item<'w>, <B as WorldQuery>::Item<'w>, <C as WorldQuery>::Item<'w>, <D as WorldQuery>::Item<'w>, <E as WorldQuery>::Item<'w>, <F as WorldQuery>::Item<'w>, <G as WorldQuery>::Item<'w>, <H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<A as WorldQuery>::Fetch<'w>, <B as WorldQuery>::Fetch<'w>, <C as WorldQuery>::Fetch<'w>, <D as WorldQuery>::Fetch<'w>, <E as WorldQuery>::Fetch<'w>, <F as WorldQuery>::Fetch<'w>, <G as WorldQuery>::Fetch<'w>, <H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<A as WorldQuery>::State, <B as WorldQuery>::State, <C as WorldQuery>::State, <D as WorldQuery>::State, <E as WorldQuery>::State, <F as WorldQuery>::State, <G as WorldQuery>::State, <H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<A as WorldQuery>::ReadOnly, <B as WorldQuery>::ReadOnly, <C as WorldQuery>::ReadOnly, <D as WorldQuery>::ReadOnly, <E as WorldQuery>::ReadOnly, <F as WorldQuery>::ReadOnly, <G as WorldQuery>::ReadOnly, <H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (A, B, C, D, E, F, G, H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (A, B, C, D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (A, B, C, D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<B: WorldQuery, C: WorldQuery, D: WorldQuery, E: WorldQuery, F: WorldQuery, G: WorldQuery, H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (B, C, D, E, F, G, H, I, J, K, L)

Source§

type Item<'w> = (<B as WorldQuery>::Item<'w>, <C as WorldQuery>::Item<'w>, <D as WorldQuery>::Item<'w>, <E as WorldQuery>::Item<'w>, <F as WorldQuery>::Item<'w>, <G as WorldQuery>::Item<'w>, <H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<B as WorldQuery>::Fetch<'w>, <C as WorldQuery>::Fetch<'w>, <D as WorldQuery>::Fetch<'w>, <E as WorldQuery>::Fetch<'w>, <F as WorldQuery>::Fetch<'w>, <G as WorldQuery>::Fetch<'w>, <H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<B as WorldQuery>::State, <C as WorldQuery>::State, <D as WorldQuery>::State, <E as WorldQuery>::State, <F as WorldQuery>::State, <G as WorldQuery>::State, <H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<B as WorldQuery>::ReadOnly, <C as WorldQuery>::ReadOnly, <D as WorldQuery>::ReadOnly, <E as WorldQuery>::ReadOnly, <F as WorldQuery>::ReadOnly, <G as WorldQuery>::ReadOnly, <H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (B, C, D, E, F, G, H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (B, C, D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (B, C, D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<C: WorldQuery, D: WorldQuery, E: WorldQuery, F: WorldQuery, G: WorldQuery, H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (C, D, E, F, G, H, I, J, K, L)

Source§

type Item<'w> = (<C as WorldQuery>::Item<'w>, <D as WorldQuery>::Item<'w>, <E as WorldQuery>::Item<'w>, <F as WorldQuery>::Item<'w>, <G as WorldQuery>::Item<'w>, <H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<C as WorldQuery>::Fetch<'w>, <D as WorldQuery>::Fetch<'w>, <E as WorldQuery>::Fetch<'w>, <F as WorldQuery>::Fetch<'w>, <G as WorldQuery>::Fetch<'w>, <H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<C as WorldQuery>::State, <D as WorldQuery>::State, <E as WorldQuery>::State, <F as WorldQuery>::State, <G as WorldQuery>::State, <H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<C as WorldQuery>::ReadOnly, <D as WorldQuery>::ReadOnly, <E as WorldQuery>::ReadOnly, <F as WorldQuery>::ReadOnly, <G as WorldQuery>::ReadOnly, <H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (C, D, E, F, G, H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (C, D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (C, D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<D: WorldQuery, E: WorldQuery, F: WorldQuery, G: WorldQuery, H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (D, E, F, G, H, I, J, K, L)

Source§

type Item<'w> = (<D as WorldQuery>::Item<'w>, <E as WorldQuery>::Item<'w>, <F as WorldQuery>::Item<'w>, <G as WorldQuery>::Item<'w>, <H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<D as WorldQuery>::Fetch<'w>, <E as WorldQuery>::Fetch<'w>, <F as WorldQuery>::Fetch<'w>, <G as WorldQuery>::Fetch<'w>, <H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<D as WorldQuery>::State, <E as WorldQuery>::State, <F as WorldQuery>::State, <G as WorldQuery>::State, <H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<D as WorldQuery>::ReadOnly, <E as WorldQuery>::ReadOnly, <F as WorldQuery>::ReadOnly, <G as WorldQuery>::ReadOnly, <H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (D, E, F, G, H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (D, E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<E: WorldQuery, F: WorldQuery, G: WorldQuery, H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (E, F, G, H, I, J, K, L)

Source§

type Item<'w> = (<E as WorldQuery>::Item<'w>, <F as WorldQuery>::Item<'w>, <G as WorldQuery>::Item<'w>, <H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<E as WorldQuery>::Fetch<'w>, <F as WorldQuery>::Fetch<'w>, <G as WorldQuery>::Fetch<'w>, <H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<E as WorldQuery>::State, <F as WorldQuery>::State, <G as WorldQuery>::State, <H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<E as WorldQuery>::ReadOnly, <F as WorldQuery>::ReadOnly, <G as WorldQuery>::ReadOnly, <H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (E, F, G, H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (E, F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<F: WorldQuery, G: WorldQuery, H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (F, G, H, I, J, K, L)

Source§

type Item<'w> = (<F as WorldQuery>::Item<'w>, <G as WorldQuery>::Item<'w>, <H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<F as WorldQuery>::Fetch<'w>, <G as WorldQuery>::Fetch<'w>, <H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<F as WorldQuery>::State, <G as WorldQuery>::State, <H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<F as WorldQuery>::ReadOnly, <G as WorldQuery>::ReadOnly, <H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (F, G, H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (F, G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<G: WorldQuery, H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (G, H, I, J, K, L)

Source§

type Item<'w> = (<G as WorldQuery>::Item<'w>, <H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<G as WorldQuery>::Fetch<'w>, <H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<G as WorldQuery>::State, <H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<G as WorldQuery>::ReadOnly, <H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (G, H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (G, H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<H: WorldQuery, I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (H, I, J, K, L)

Source§

type Item<'w> = (<H as WorldQuery>::Item<'w>, <I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<H as WorldQuery>::Fetch<'w>, <I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<H as WorldQuery>::State, <I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<H as WorldQuery>::ReadOnly, <I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (H, I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (H, I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<I: WorldQuery, J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (I, J, K, L)

Source§

type Item<'w> = (<I as WorldQuery>::Item<'w>, <J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<I as WorldQuery>::Fetch<'w>, <J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<I as WorldQuery>::State, <J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<I as WorldQuery>::ReadOnly, <J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (I, J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (I, J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<J: WorldQuery, K: WorldQuery, L: WorldQuery> WorldQuery for (J, K, L)

Source§

type Item<'w> = (<J as WorldQuery>::Item<'w>, <K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<J as WorldQuery>::Fetch<'w>, <K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<J as WorldQuery>::State, <K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<J as WorldQuery>::ReadOnly, <K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (J, K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>( (J, K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<K: WorldQuery, L: WorldQuery> WorldQuery for (K, L)

Source§

type Item<'w> = (<K as WorldQuery>::Item<'w>, <L as WorldQuery>::Item<'w>)

Source§

type Fetch<'w> = (<K as WorldQuery>::Fetch<'w>, <L as WorldQuery>::Fetch<'w>)

Source§

type State = (<K as WorldQuery>::State, <L as WorldQuery>::State)

Source§

type ReadOnly = (<K as WorldQuery>::ReadOnly, <L as WorldQuery>::ReadOnly)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (K, L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( (K, L): &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>((K, L): &mut Self::Fetch<'w>, entity: Entity) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<L: WorldQuery> WorldQuery for (L,)

Source§

type Item<'w> = (<L as WorldQuery>::Item<'w>,)

Source§

type Fetch<'w> = (<L as WorldQuery>::Fetch<'w>,)

Source§

type State = (<L as WorldQuery>::State,)

Source§

type ReadOnly = (<L as WorldQuery>::ReadOnly,)

Source§

unsafe fn init_fetch<'w>( world: &'w World, (L): &Self::State, last_change_tick: u32, change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>((L): &mut Self::Fetch<'w>, entity: Entity) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>((L): &mut Self::Fetch<'w>, entity: Entity) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Source§

impl<T: Component> WorldQuery for &T

Source§

type Item<'w> = &'w T

Source§

type Fetch<'w> = ReadFetch<'w, T>

Source§

type State = ComponentId

Source§

type ReadOnly = &T

Source§

unsafe fn init_fetch<'w>( world: &'w World, state: &Self::State, _last_change_tick: u32, _change_tick: u32, ) -> Self::Fetch<'w>

Source§

unsafe fn fetch<'w>( fetch: &mut Self::Fetch<'w>, entity: Entity, ) -> Self::Item<'w>

Source§

unsafe fn filter_fetch<'w>(fetch: &mut Self::Fetch<'w>, entity: Entity) -> bool

Source§

fn init_state(world: &mut World) -> Self::State

Source§

fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )

Implementors§