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§
§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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<()> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<()> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0> WorldQuery for Or<(F0,)>where
F0: WorldQueryFilter,
impl<F0> WorldQuery for Or<(F0,)>where F0: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0,)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0,)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1> WorldQuery for Or<(F0, F1)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
impl<F0, F1> WorldQuery for Or<(F0, F1)>where F0: WorldQueryFilter, F1: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1, F2, F3, F4, F5> WorldQuery for Or<(F0, F1, F2, F3, F4, F5)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5> WorldQuery for Or<(F0, F1, F2, F3, F4, F5)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1, F2, F3, F4, F5, F6> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§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: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
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: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§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: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
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: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§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: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
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: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
access: &mut FilteredAccess<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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§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: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
F12: WorldQueryFilter,
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: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter, F12: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
access: &mut FilteredAccess<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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§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: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
F12: WorldQueryFilter,
F13: WorldQueryFilter,
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: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter, F12: WorldQueryFilter, F13: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
access: &mut FilteredAccess<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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§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: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
F12: WorldQueryFilter,
F13: WorldQueryFilter,
F14: WorldQueryFilter,
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: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter, F12: WorldQueryFilter, F13: WorldQueryFilter, F14: WorldQueryFilter,
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 WorldQueryData
this will be the item returned by the query.
For WorldQueryFilter
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
.§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,
§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.§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>
§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 more§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 more§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 more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
access: &mut FilteredAccess<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
.§fn update_archetype_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
archetype: &Archetype,
access: &mut Access<ArchetypeComponentId>
)
fn update_archetype_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, archetype: &Archetype, access: &mut Access<ArchetypeComponentId> )
§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.§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
.§impl WorldQueryFilter for Or<()>
impl WorldQueryFilter for Or<()>
§const IS_ARCHETYPAL: bool = true
const IS_ARCHETYPAL: bool = true
§unsafe fn filter_fetch(
fetch: &mut <Or<()> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<()> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
§impl<F0> WorldQueryFilter for Or<(F0,)>where
F0: WorldQueryFilter,
impl<F0> WorldQueryFilter for Or<(F0,)>where F0: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§unsafe fn filter_fetch(
fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0,)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
§impl<F0, F1> WorldQueryFilter for Or<(F0, F1)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
impl<F0, F1> WorldQueryFilter for Or<(F0, F1)>where F0: WorldQueryFilter, F1: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§unsafe fn filter_fetch(
fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow
) -> bool
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
§impl<F0, F1, F2> WorldQueryFilter for Or<(F0, F1, F2)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
impl<F0, F1, F2> WorldQueryFilter for Or<(F0, F1, F2)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§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
§impl<F0, F1, F2, F3> WorldQueryFilter for Or<(F0, F1, F2, F3)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
impl<F0, F1, F2, F3> WorldQueryFilter for Or<(F0, F1, F2, F3)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§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
§impl<F0, F1, F2, F3, F4> WorldQueryFilter for Or<(F0, F1, F2, F3, F4)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
impl<F0, F1, F2, F3, F4> WorldQueryFilter for Or<(F0, F1, F2, F3, F4)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§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
§impl<F0, F1, F2, F3, F4, F5> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§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
§impl<F0, F1, F2, F3, F4, F5, F6> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§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
§impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
unsafe fn filter_fetch( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow ) -> bool
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
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
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
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
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
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
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
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
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
F12: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter, F12: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
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
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
F12: WorldQueryFilter,
F13: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter, F12: WorldQueryFilter, F13: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
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
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: WorldQueryFilter,
F1: WorldQueryFilter,
F2: WorldQueryFilter,
F3: WorldQueryFilter,
F4: WorldQueryFilter,
F5: WorldQueryFilter,
F6: WorldQueryFilter,
F7: WorldQueryFilter,
F8: WorldQueryFilter,
F9: WorldQueryFilter,
F10: WorldQueryFilter,
F11: WorldQueryFilter,
F12: WorldQueryFilter,
F13: WorldQueryFilter,
F14: WorldQueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> WorldQueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where F0: WorldQueryFilter, F1: WorldQueryFilter, F2: WorldQueryFilter, F3: WorldQueryFilter, F4: WorldQueryFilter, F5: WorldQueryFilter, F6: WorldQueryFilter, F7: WorldQueryFilter, F8: WorldQueryFilter, F9: WorldQueryFilter, F10: WorldQueryFilter, F11: WorldQueryFilter, F12: WorldQueryFilter, F13: WorldQueryFilter, F14: WorldQueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: 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
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
impl 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)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter,
impl<F0, F1, F2, F3> ArchetypeFilter for Or<(F0, F1, F2, F3)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter,
impl<F0, F1, F2, F3, F4> ArchetypeFilter for Or<(F0, F1, F2, F3, F4)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter, F12: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter, F12: ArchetypeFilter, F13: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where F0: ArchetypeFilter, F1: ArchetypeFilter, F2: ArchetypeFilter, F3: ArchetypeFilter, F4: ArchetypeFilter, F5: ArchetypeFilter, F6: ArchetypeFilter, F7: ArchetypeFilter, F8: ArchetypeFilter, F9: ArchetypeFilter, F10: ArchetypeFilter, F11: ArchetypeFilter, F12: ArchetypeFilter, F13: ArchetypeFilter, F14: ArchetypeFilter,
Auto Trait Implementations§
impl<T> 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§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere U: ShaderType, &'a T: for<'a> Into<U>,
§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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
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
.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§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.§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.