Skip to main content

Or

Struct Or 

pub struct Or<T>(/* private fields */);
Expand description

A filter that tests if any of the given filters apply.

This is useful for example if a system with multiple components in a query only wants to run when one or more of the components have changed.

The And equivalent to this filter is a tuple testing that all the contained filters apply instead.

§Examples

fn print_cool_entity_system(query: Query<Entity, Or<(Changed<Color>, Changed<Node>)>>) {
    for entity in &query {
        println!("Entity {} got a new style or color", entity);
    }
}

Trait Implementations§

§

impl QueryFilter for Or<()>

§

const IS_ARCHETYPAL: bool = true

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<()> as WorldQuery>::State, fetch: &mut <Or<()> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F> QueryFilter for Or<(F,)>
where F: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F,)> as WorldQuery>::State, fetch: &mut <Or<(F,)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1> QueryFilter for Or<(F0, F1)>
where F0: QueryFilter, F1: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2> QueryFilter for Or<(F0, F1, F2)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3> QueryFilter for Or<(F0, F1, F2, F3)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4> QueryFilter for Or<(F0, F1, F2, F3, F4)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5> QueryFilter for Or<(F0, F1, F2, F3, F4, F5)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter, F12: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter, F12: QueryFilter, F13: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter, F12: QueryFilter, F13: QueryFilter, F14: QueryFilter,

§

const IS_ARCHETYPAL: bool

Returns true if (and only if) this Filter relies strictly on archetypes to limit which components are accessed by the Query. Read more
§

unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool

Returns true if the provided Entity and [TableRow] should be included in the query results. If false, the entity will be skipped. Read more
§

impl WorldQuery for Or<()>

§

const IS_DENSE: bool = true

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = ()

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = ()

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<()> as WorldQuery>::Fetch<'wlong>, ) -> <Or<()> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<()> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<()> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>, state: &'s <Or<()> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>, state: &'s <Or<()> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<()> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<()> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state(world: &mut World) -> <Or<()> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state(components: &Components) -> Option<<Or<()> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<()> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<()> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F> WorldQuery for Or<(F,)>
where F: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F>,)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

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

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F,)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F,)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F,)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F,)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F,)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F,)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F,)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F,)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F,)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F,)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state(world: &mut World) -> <Or<(F,)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state(components: &Components) -> Option<<Or<(F,)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F,)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F,)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1> WorldQuery for Or<(F0, F1)>
where F0: QueryFilter, F1: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state(world: &mut World) -> <Or<(F0, F1)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state(world: &mut World) -> <Or<(F0, F1, F2)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state(world: &mut World) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5> WorldQuery for Or<(F0, F1, F2, F3, F4, F5)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter, F12: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter, F12: QueryFilter, F13: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>
where F0: QueryFilter, F1: QueryFilter, F2: QueryFilter, F3: QueryFilter, F4: QueryFilter, F5: QueryFilter, F6: QueryFilter, F7: QueryFilter, F8: QueryFilter, F9: QueryFilter, F10: QueryFilter, F11: QueryFilter, F12: QueryFilter, F13: QueryFilter, F14: QueryFilter,

§

const IS_DENSE: bool

Returns true if (and only if) every table of every archetype matched by this fetch contains all of the matched components. Read more
§

type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>, OrFetch<'w, F14>)

Per archetype/table state retrieved by this [WorldQuery] to compute Self::Item for each entity.
§

type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State, <F14 as WorldQuery>::State)

State used to construct a Self::Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Self::Fetch.
§

fn shrink_fetch<'wlong, 'wshort>( fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'wlong>, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'wshort>
where 'wlong: 'wshort,

This function manually implements subtyping for the query fetches.
§

unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>

Creates a new instance of Self::Fetch, by combining data from the World with the cached Self::State. Readonly accesses resources registered in [WorldQuery::update_component_access]. Read more
§

unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, table: &'w Table, )

Adjusts internal state to account for the next [Table]. This will always be called on tables that match this [WorldQuery]. Read more
§

unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )

Adjusts internal state to account for the next [Archetype]. This will always be called on archetypes that match this [WorldQuery]. Read more
§

fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, access: &mut FilteredAccess, )

Adds any component accesses to the current entity used by this [WorldQuery] to access. Read more
§

fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )

Adds any component accesses to other entities used by this [WorldQuery]. Read more
§

fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State

Creates and initializes a State for this [WorldQuery] type.
§

fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State>

Attempts to initialize a State for this [WorldQuery] type using read-only access to [Components].
§

fn matches_component_set( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

Returns true if this query matches a set of components. Otherwise, returns false. Read more
§

fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )

Called when the query state is updating its archetype cache. This can be used by nested queries to update their internal archetype caches.
§

impl ArchetypeFilter for Or<()>

§

impl<F> ArchetypeFilter for Or<(F,)>
where F: ArchetypeFilter,

§

impl<F0, F1> ArchetypeFilter for Or<(F0, F1)>
where F0: ArchetypeFilter, F1: ArchetypeFilter,

§

impl<F0, F1, F2> ArchetypeFilter for Or<(F0, F1, F2)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter,

§

impl<F0, F1, F2, F3> ArchetypeFilter for Or<(F0, F1, F2, F3)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4> ArchetypeFilter for Or<(F0, F1, F2, F3, F4)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter, F12: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter, F12: ArchetypeFilter, F13: ArchetypeFilter,

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>
where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter, F12: ArchetypeFilter, F13: ArchetypeFilter, F14: ArchetypeFilter,

Auto Trait Implementations§

§

impl<T> Freeze for Or<T>

§

impl<T> RefUnwindSafe for Or<T>
where T: RefUnwindSafe,

§

impl<T> Send for Or<T>
where T: Send,

§

impl<T> Sync for Or<T>
where T: Sync,

§

impl<T> Unpin for Or<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Or<T>

§

impl<T> UnwindSafe for Or<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoResult<T> for T

§

fn into_result(self) -> Result<T, RunSystemError>

Converts this type into the system output type.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> ConditionalSend for T
where T: Send,