Struct Or
pub struct Or<T>(/* private fields */);Expand description
A filter that tests if any of the given filters apply.
This is useful for example if a system with multiple components in a query only wants to run when one or more of the components have changed.
The And equivalent to this filter is a tuple testing that all the contained filters
apply instead.
§Examples
fn print_cool_entity_system(query: Query<Entity, Or<(Changed<Color>, Changed<Node>)>>) {
for entity in &query {
println!("Entity {} got a new style or color", entity);
}
}Trait Implementations§
§impl QueryFilter for Or<()>
impl QueryFilter for Or<()>
§const IS_ARCHETYPAL: bool = true
const IS_ARCHETYPAL: bool = true
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§impl<F> QueryFilter for Or<(F,)>where
F: QueryFilter,
impl<F> QueryFilter for Or<(F,)>where
F: QueryFilter,
§const IS_ARCHETYPAL: bool
const IS_ARCHETYPAL: bool
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§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
Returns true if (and only if) this Filter relies strictly on archetypes to limit which
components are accessed by the Query. Read more
§unsafe fn filter_fetch(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'_>,
entity: Entity,
table_row: TableRow,
) -> bool
unsafe fn filter_fetch( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'_>, entity: Entity, table_row: TableRow, ) -> bool
§impl WorldQuery for Or<()>
impl WorldQuery for Or<()>
§const IS_DENSE: bool = true
const IS_DENSE: bool = true
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = ()
type Fetch<'w> = ()
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = ()
type State = ()
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<()> as WorldQuery>::Fetch<'wlong>,
) -> <Or<()> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<()> as WorldQuery>::Fetch<'wlong>,
) -> <Or<()> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<()> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<()> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<()> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<()> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>,
state: &'s <Or<()> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>, state: &'s <Or<()> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>,
state: &'s <Or<()> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<()> as WorldQuery>::Fetch<'w>, state: &'s <Or<()> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<()> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<()> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<()> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<()> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(world: &mut World) -> <Or<()> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<()> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(components: &Components) -> Option<<Or<()> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<()> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<()> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F> WorldQuery for Or<(F,)>where
F: QueryFilter,
impl<F> WorldQuery for Or<(F,)>where
F: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F>,)
type Fetch<'w> = (OrFetch<'w, F>,)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F as WorldQuery>::State,)
type State = (<F as WorldQuery>::State,)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F,)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F,)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F,)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F,)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F,)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F,)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F,)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F,)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F,)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F,)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F,)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F,)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F,)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F,)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F,)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F,)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F,)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F,)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F,)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F,)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(world: &mut World) -> <Or<(F,)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F,)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(components: &Components) -> Option<<Or<(F,)> as WorldQuery>::State>
fn get_state(components: &Components) -> Option<<Or<(F,)> as WorldQuery>::State>
§fn matches_component_set(
state: &<Or<(F,)> as WorldQuery>::State,
set_contains_id: &impl Fn(ComponentId) -> bool,
) -> bool
fn matches_component_set( state: &<Or<(F,)> as WorldQuery>::State, set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool
§fn update_archetypes(
state: &mut <Or<(F,)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F,)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1> WorldQuery for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
impl<F0, F1> WorldQuery for Or<(F0, F1)>where
F0: QueryFilter,
F1: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(world: &mut World) -> <Or<(F0, F1)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F0, F1)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>
impl<F0, F1, F2> WorldQuery for Or<(F0, F1, F2)>
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(world: &mut World) -> <Or<(F0, F1, F2)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F0, F1, F2)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>
impl<F0, F1, F2, F3> WorldQuery for Or<(F0, F1, F2, F3)>
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(world: &mut World) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::State
fn init_state(world: &mut World) -> <Or<(F0, F1, F2, F3)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>
impl<F0, F1, F2, F3, F4> WorldQuery for Or<(F0, F1, F2, F3, F4)>
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5> WorldQuery for Or<(F0, F1, F2, F3, F4, F5)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
impl<F0, F1, F2, F3, F4, F5> WorldQuery for Or<(F0, F1, F2, F3, F4, F5)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
fn update_component_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, access: &mut FilteredAccess, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
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, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
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, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
§impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
F14: QueryFilter,
impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> WorldQuery for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>where
F0: QueryFilter,
F1: QueryFilter,
F2: QueryFilter,
F3: QueryFilter,
F4: QueryFilter,
F5: QueryFilter,
F6: QueryFilter,
F7: QueryFilter,
F8: QueryFilter,
F9: QueryFilter,
F10: QueryFilter,
F11: QueryFilter,
F12: QueryFilter,
F13: QueryFilter,
F14: QueryFilter,
§const IS_DENSE: bool
const IS_DENSE: bool
Returns true if (and only if) every table of every archetype matched by this fetch contains
all of the matched components. Read more
§type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>, OrFetch<'w, F14>)
type Fetch<'w> = (OrFetch<'w, F0>, OrFetch<'w, F1>, OrFetch<'w, F2>, OrFetch<'w, F3>, OrFetch<'w, F4>, OrFetch<'w, F5>, OrFetch<'w, F6>, OrFetch<'w, F7>, OrFetch<'w, F8>, OrFetch<'w, F9>, OrFetch<'w, F10>, OrFetch<'w, F11>, OrFetch<'w, F12>, OrFetch<'w, F13>, OrFetch<'w, F14>)
Per archetype/table state retrieved by this
WorldQuery to compute Self::Item for each entity.§type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State, <F14 as WorldQuery>::State)
type State = (<F0 as WorldQuery>::State, <F1 as WorldQuery>::State, <F2 as WorldQuery>::State, <F3 as WorldQuery>::State, <F4 as WorldQuery>::State, <F5 as WorldQuery>::State, <F6 as WorldQuery>::State, <F7 as WorldQuery>::State, <F8 as WorldQuery>::State, <F9 as WorldQuery>::State, <F10 as WorldQuery>::State, <F11 as WorldQuery>::State, <F12 as WorldQuery>::State, <F13 as WorldQuery>::State, <F14 as WorldQuery>::State)
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'wlong>,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
This function manually implements subtyping for the query fetches.
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>
Creates a new instance of
Self::Fetch,
by combining data from the World with the cached Self::State.
Readonly accesses resources registered in WorldQuery::update_component_access. Read more§unsafe fn set_table<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
table: &'w Table,
)
unsafe fn set_table<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, table: &'w Table, )
Adjusts internal state to account for the next
Table. This will always be called on tables
that match this WorldQuery. Read more§unsafe fn set_archetype<'w, 's>(
fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>,
state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
archetype: &'w Archetype,
table: &'w Table,
)
unsafe fn set_archetype<'w, 's>( fetch: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::Fetch<'w>, state: &'s <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, archetype: &'w Archetype, table: &'w Table, )
Adjusts internal state to account for the next
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§fn update_component_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
access: &mut FilteredAccess,
)
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, )
§fn init_nested_access(
state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( state: &<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
Adds any component accesses to other entities used by this
WorldQuery. Read more§fn init_state(
world: &mut World,
) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State
Creates and initializes a
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State>
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 update_archetypes(
state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State,
_world: UnsafeWorldCell<'_>,
)
fn update_archetypes( state: &mut <Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> as WorldQuery>::State, _world: UnsafeWorldCell<'_>, )
Called when the query state is updating its archetype cache.
This can be used by nested queries to update their internal archetype caches.
impl ArchetypeFilter for Or<()>
impl<F> ArchetypeFilter for Or<(F,)>where
F: ArchetypeFilter,
impl<F0, F1> ArchetypeFilter for Or<(F0, F1)>where
F0: ArchetypeFilter,
F1: ArchetypeFilter,
impl<F0, F1, F2> ArchetypeFilter for Or<(F0, F1, F2)>
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> UnsafeUnpin for Or<T>
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
Mutably borrows from an owned value. Read more
§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>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
Converts
&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)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend 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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Formats each item in a sequence. Read more
§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> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§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,
Pipes by value. This is generally the method you want to use. Read more
§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,
Borrows
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,
Mutably borrows
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
Borrows
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
Mutably borrows
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
Borrows
self, then passes self.deref() into the pipe function.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.tap_deref() only in debug builds, and is erased in release
builds.