Struct bevy_internal::ecs::query::Or
source · 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<Style>)>>) {
for entity in &query {
println!("Entity {:?} got a new style or color", entity);
}
}
Trait Implementations§
source§impl QueryFilter for Or<()>
impl QueryFilter for Or<()>
source§const IS_ARCHETYPAL: bool = true
const IS_ARCHETYPAL: bool = true
source§impl<F0> QueryFilter for Or<(F0,)>where
F0: QueryFilter,
impl<F0> QueryFilter for Or<(F0,)>where
F0: QueryFilter,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§impl<F0, F1> QueryFilter for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
impl<F0, F1> QueryFilter for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§impl<F0, F1, F2> QueryFilter for Or<(F0, F1, F2)>
impl<F0, F1, F2> QueryFilter for Or<(F0, F1, F2)>
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§impl<F0, F1, F2, F3> QueryFilter for Or<(F0, F1, F2, F3)>
impl<F0, F1, F2, F3> QueryFilter for Or<(F0, F1, F2, F3)>
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§impl<F0, F1, F2, F3, F4> QueryFilter for Or<(F0, F1, F2, F3, F4)>
impl<F0, F1, F2, F3, F4> QueryFilter for Or<(F0, F1, F2, F3, F4)>
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
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
unsafe fn filter_fetch( 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
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
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
unsafe fn filter_fetch( 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
source§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,
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,
source§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
source§unsafe fn filter_fetch(
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
unsafe fn filter_fetch( 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
source§impl WorldQuery for Or<()>
impl WorldQuery for Or<()>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = ()
type Fetch<'w> = ()
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = ()
type State = ()
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<()> as WorldQuery>::Item<'wlong>
) -> <Or<()> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<()> as WorldQuery>::Item<'wlong>
) -> <Or<()> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = true
const IS_DENSE: bool = true
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<Or<()> as WorldQuery>::State,
last_run: Tick,
this_run: Tick
) -> <Or<()> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<Or<()> as WorldQuery>::State, last_run: Tick, this_run: Tick ) -> <Or<()> as WorldQuery>::Fetch<'w>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>,
state: &<Or<()> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>, state: &<Or<()> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>,
state: &<Or<()> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>, state: &<Or<()> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<()> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<()> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<()> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<()> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(world: &mut World) -> <Or<()> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<()> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(world: &World) -> Option<<Or<()> as WorldQuery>::State>
fn get_state(world: &World) -> Option<<Or<()> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<()> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<()> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§impl<F0> WorldQuery for Or<(F0,)>where
F0: QueryFilter,
impl<F0> WorldQuery for Or<(F0,)>where
F0: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>,)
type Fetch<'w> = (OrFetch<'w, F0>,)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State,)
type State = (<F0 as WorldQuery>::State,)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0,)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0,)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0,)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0,)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<Or<(F0,)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick
) -> <Or<(F0,)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<Or<(F0,)> as WorldQuery>::State, last_run: Tick, this_run: Tick ) -> <Or<(F0,)> as WorldQuery>::Fetch<'w>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0,)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0,)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0,)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0,)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0,)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0,)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0,)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0,)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(world: &mut World) -> <Or<(F0,)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F0,)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(world: &World) -> Option<<Or<(F0,)> as WorldQuery>::State>
fn get_state(world: &World) -> Option<<Or<(F0,)> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<(F0,)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<(F0,)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§impl<F0, F1> WorldQuery for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
impl<F0, F1> WorldQuery for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<Or<(F0, F1)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick
) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<Or<(F0, F1)> as WorldQuery>::State, last_run: Tick, this_run: Tick ) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'w>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(world: &mut World) -> <Or<(F0, F1)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F0, F1)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(world: &World) -> Option<<Or<(F0, F1)> as WorldQuery>::State>
fn get_state(world: &World) -> Option<<Or<(F0, F1)> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<(F0, F1)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<(F0, F1)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>
impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick
) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<Or<(F0, F1, F2)> as WorldQuery>::State, last_run: Tick, this_run: Tick ) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(world: &mut World) -> <Or<(F0, F1, F2)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F0, F1, F2)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(world: &World) -> Option<<Or<(F0, F1, F2)> as WorldQuery>::State>
fn get_state(world: &World) -> Option<<Or<(F0, F1, F2)> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<(F0, F1, F2)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>
impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick
) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, last_run: Tick, this_run: Tick ) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(world: &mut World) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3)> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>
impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State>
State
for this WorldQuery
type.source§fn matches_component_set(
_state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool
fn matches_component_set( _state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool ) -> bool
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§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<ComponentId>
)
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<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§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<ComponentId>
)
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<ComponentId> )
WorldQuery
to access
.source§fn init_state(
world: &mut World
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State
fn init_state( world: &mut World ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moresource§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,
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,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§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>)
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>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§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)
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)
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
.source§fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Item<'wlong>
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Item<'wshort>where
'wlong: 'wshort,
source§const IS_DENSE: bool = _
const IS_DENSE: bool = _
WorldQuery::set_table
must be used before
WorldQuery::fetch
can be called for iterators. If this returns false,
WorldQuery::set_archetype
must be used before WorldQuery::fetch
can be called for
iterators.source§unsafe fn init_fetch<'w>(
world: UnsafeWorldCell<'w>,
state: &<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>
unsafe fn init_fetch<'w>( world: UnsafeWorldCell<'w>, state: &<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>
source§unsafe fn set_table<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>,
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
table: &'w Table
)
unsafe fn set_table<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>, state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, table: &'w Table )
Table
. This will always be called on tables
that match this WorldQuery
. Read moresource§unsafe fn set_archetype<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>,
state: &<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
)
unsafe fn set_archetype<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>, state: &<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 )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moresource§unsafe fn fetch<'w>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Item<'w>
unsafe fn fetch<'w>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with a entity
in the current archetype. Read moresource§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<ComponentId>
)
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<ComponentId> )
WorldQuery
to access
.source§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
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
State
for this WorldQuery
type.source§fn get_state(
world: &World
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State>
fn get_state( world: &World ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State>
State
for this WorldQuery
type.source§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
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
true
if this query matches a set of components. Otherwise, returns false
.source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moreimpl ArchetypeFilter for Or<()>
impl<F0> ArchetypeFilter for Or<(F0,)>where
F0: ArchetypeFilter,
impl<F0, F1> ArchetypeFilter for Or<(F0, F1)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
impl<F0, F1, F2> ArchetypeFilter for Or<(F0, F1, F2)>
impl<F0, F1, F2, F3> ArchetypeFilter for Or<(F0, F1, F2, F3)>
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> 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> UnwindSafe for Or<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.