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 QueryFilter for Or<()>
impl QueryFilter for Or<()>
§const IS_ARCHETYPAL: bool = true
const IS_ARCHETYPAL: bool = true
§impl<F0> QueryFilter for Or<(F0,)>where
F0: QueryFilter,
impl<F0> QueryFilter for Or<(F0,)>where
F0: QueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§impl<F0, F1> QueryFilter for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
impl<F0, F1> QueryFilter for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
§const IS_ARCHETYPAL: bool = _
const IS_ARCHETYPAL: bool = _
§impl<F0, F1, F2> QueryFilter for Or<(F0, F1, F2)>
impl<F0, F1, F2> QueryFilter for Or<(F0, F1, F2)>
§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> QueryFilter for Or<(F0, F1, F2, F3)>
impl<F0, F1, F2, F3> QueryFilter for Or<(F0, F1, F2, F3)>
§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> QueryFilter for Or<(F0, F1, F2, F3, F4)>
impl<F0, F1, F2, F3, F4> QueryFilter for Or<(F0, F1, F2, F3, F4)>
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
impl<F0, F1, F2, F3, F4, F5> QueryFilter for Or<(F0, F1, F2, F3, F4, F5)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
§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> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
F14: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> QueryFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
F14: QueryFilter,
§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 WorldQuery for Or<()>
impl WorldQuery for Or<()>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = ()
type Fetch<'w> = ()
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = ()
type State = ()
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(components: &Components) -> Option<<Or<()> as WorldQuery>::State>
fn get_state(components: &Components) -> Option<<Or<()> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0> WorldQuery for Or<(F0,)>where
F0: QueryFilter,
impl<F0> WorldQuery for Or<(F0,)>where
F0: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>,)
type Fetch<'w> = (OrFetch<'w, F0>,)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State,)
type State = (<F0 as WorldQuery>::State,)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0,)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0,)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1> WorldQuery for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
impl<F0, F1> WorldQuery for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>
impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>
impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>
impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5> WorldQuery for Or<(F0, F1, F2, F3, F4, F5)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
impl<F0, F1, F2, F3, F4, F5> WorldQuery for Or<(F0, F1, F2, F3, F4, F5)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read more§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
F14: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
F14: QueryFilter,
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>, OrFetch<'w, F14>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>, OrFetch<'w, F14>)
WorldQuery
to fetch Self::Item
§type Item<'w> = bool
type Item<'w> = bool
WorldQuery
For QueryData
this will be the item returned by the query.
For QueryFilter
this will be either ()
, or a bool
indicating whether the entity should be included
or a tuple of such things.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State, <F14 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State, <F14 as WorldQuery>::State)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.§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>, )
§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 get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State>
§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
§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moreimpl ArchetypeFilter for Or<()>
impl<F0> ArchetypeFilter for Or<(F0,)>where
F0: ArchetypeFilter,
impl<F0, F1> ArchetypeFilter for Or<(F0, F1)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
impl<F0, F1, F2> ArchetypeFilter for Or<(F0, F1, F2)>
impl<F0, F1, F2, F3> ArchetypeFilter for Or<(F0, F1, F2, F3)>
impl<F0, F1, F2, F3, F4> ArchetypeFilter for Or<(F0, F1, F2, F3, F4)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
F8: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
F8: ArchetypeFilter,
F9: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
F8: ArchetypeFilter,
F9: ArchetypeFilter,
F10: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
F8: ArchetypeFilter,
F9: ArchetypeFilter,
F10: ArchetypeFilter,
F11: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
F8: ArchetypeFilter,
F9: ArchetypeFilter,
F10: ArchetypeFilter,
F11: ArchetypeFilter,
F12: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
F8: ArchetypeFilter,
F9: ArchetypeFilter,
F10: ArchetypeFilter,
F11: ArchetypeFilter,
F12: ArchetypeFilter,
F13: ArchetypeFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> ArchetypeFilter for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
F2: ArchetypeFilter,
F3: ArchetypeFilter,
F4: ArchetypeFilter,
F5: ArchetypeFilter,
F6: ArchetypeFilter,
F7: ArchetypeFilter,
F8: ArchetypeFilter,
F9: ArchetypeFilter,
F10: ArchetypeFilter,
F11: ArchetypeFilter,
F12: ArchetypeFilter,
F13: ArchetypeFilter,
F14: ArchetypeFilter,
Auto Trait Implementations§
impl<T> Freeze for Or<T>
impl<T> RefUnwindSafe for Or<T>where
T: RefUnwindSafe,
impl<T> Send for Or<T>where
T: Send,
impl<T> Sync for Or<T>where
T: Sync,
impl<T> Unpin for Or<T>where
T: Unpin,
impl<T> UnwindSafe for Or<T>where
T: UnwindSafe,
Blanket Implementations§
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> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.