Skip to main content

AnyOf

Struct AnyOf 

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

The AnyOf query parameter fetches entities with any of the component types included in T.

Query<AnyOf<(&A, &B, &mut C)>> is equivalent to Query<(Option<&A>, Option<&B>, Option<&mut C>), Or<(With<A>, With<B>, With<C>)>>. Each of the components in T is returned as an Option, as with Option<A> queries. Entities are guaranteed to have at least one of the components in T.

Trait Implementations§

Source§

impl ArchetypeQueryData for AnyOf<()>

Source§

impl<F: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F,)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData, F4: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3, F4)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData, F4: ArchetypeQueryData, F5: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData, F4: ArchetypeQueryData, F5: ArchetypeQueryData, F6: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData, F4: ArchetypeQueryData, F5: ArchetypeQueryData, F6: ArchetypeQueryData, F7: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData, F4: ArchetypeQueryData, F5: ArchetypeQueryData, F6: ArchetypeQueryData, F7: ArchetypeQueryData, F8: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData, F4: ArchetypeQueryData, F5: ArchetypeQueryData, F6: ArchetypeQueryData, F7: ArchetypeQueryData, F8: ArchetypeQueryData, F9: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

Source§

impl<F0: ArchetypeQueryData, F1: ArchetypeQueryData, F2: ArchetypeQueryData, F3: ArchetypeQueryData, F4: ArchetypeQueryData, F5: ArchetypeQueryData, F6: ArchetypeQueryData, F7: ArchetypeQueryData, F8: ArchetypeQueryData, F9: ArchetypeQueryData, F10: ArchetypeQueryData> ArchetypeQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ContiguousQueryData for AnyOf<()>

Source§

type Contiguous<'w, 's> = ()

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F: ContiguousQueryData> ContiguousQueryData for AnyOf<(F,)>

Source§

type Contiguous<'w, 's> = (Option<<F as ContiguousQueryData>::Contiguous<'w, 's>>,)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData, F4: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3, F4)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData, F4: ContiguousQueryData, F5: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData, F4: ContiguousQueryData, F5: ContiguousQueryData, F6: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData, F4: ContiguousQueryData, F5: ContiguousQueryData, F6: ContiguousQueryData, F7: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData, F4: ContiguousQueryData, F5: ContiguousQueryData, F6: ContiguousQueryData, F7: ContiguousQueryData, F8: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F8 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData, F4: ContiguousQueryData, F5: ContiguousQueryData, F6: ContiguousQueryData, F7: ContiguousQueryData, F8: ContiguousQueryData, F9: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F8 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F9 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl<F0: ContiguousQueryData, F1: ContiguousQueryData, F2: ContiguousQueryData, F3: ContiguousQueryData, F4: ContiguousQueryData, F5: ContiguousQueryData, F6: ContiguousQueryData, F7: ContiguousQueryData, F8: ContiguousQueryData, F9: ContiguousQueryData, F10: ContiguousQueryData> ContiguousQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F8 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F9 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F10 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

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

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F8 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F9 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F10 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F11 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

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

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F8 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F9 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F10 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F11 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F12 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

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

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F8 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F9 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F10 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F11 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F12 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F13 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

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

Source§

type Contiguous<'w, 's> = (Option<<F0 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F1 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F2 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F3 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F4 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F5 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F6 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F7 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F8 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F9 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F10 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F11 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F12 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F13 as ContiguousQueryData>::Contiguous<'w, 's>>, Option<<F14 as ContiguousQueryData>::Contiguous<'w, 's>>)

Item returned by ContiguousQueryData::fetch_contiguous. Represents a contiguous chunk of memory.
Source§

unsafe fn fetch_contiguous<'w, 's>( state: &'s Self::State, fetch: &mut Self::Fetch<'w>, entities: &'w [Entity], ) -> Self::Contiguous<'w, 's>

Fetch ContiguousQueryData::Contiguous which represents a contiguous chunk of memory (e.g., an array) in the current Table. This must always be called after WorldQuery::set_table. Read more
Source§

impl IterQueryData for AnyOf<()>

Source§

impl<F: IterQueryData> IterQueryData for AnyOf<(F,)>

Source§

impl<F0: IterQueryData, F1: IterQueryData> IterQueryData for AnyOf<(F0, F1)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData, F4: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3, F4)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData, F4: IterQueryData, F5: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData, F4: IterQueryData, F5: IterQueryData, F6: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData, F4: IterQueryData, F5: IterQueryData, F6: IterQueryData, F7: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData, F4: IterQueryData, F5: IterQueryData, F6: IterQueryData, F7: IterQueryData, F8: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData, F4: IterQueryData, F5: IterQueryData, F6: IterQueryData, F7: IterQueryData, F8: IterQueryData, F9: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

Source§

impl<F0: IterQueryData, F1: IterQueryData, F2: IterQueryData, F3: IterQueryData, F4: IterQueryData, F5: IterQueryData, F6: IterQueryData, F7: IterQueryData, F8: IterQueryData, F9: IterQueryData, F10: IterQueryData> IterQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl QueryData for AnyOf<()>

Source§

const IS_READ_ONLY: bool = true

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool = true

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

type ReadOnly = AnyOf<()>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = ()

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F: QueryData> QueryData for AnyOf<(F,)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F as QueryData>::ReadOnly,)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F as QueryData>::Item<'w, 's>>,)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData> QueryData for AnyOf<(F0, F1)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData> QueryData for AnyOf<(F0, F1, F2)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData> QueryData for AnyOf<(F0, F1, F2, F3)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly, <F3 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData, F4: QueryData> QueryData for AnyOf<(F0, F1, F2, F3, F4)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly, <F3 as QueryData>::ReadOnly, <F4 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData, F4: QueryData, F5: QueryData> QueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly, <F3 as QueryData>::ReadOnly, <F4 as QueryData>::ReadOnly, <F5 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData, F4: QueryData, F5: QueryData, F6: QueryData> QueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly, <F3 as QueryData>::ReadOnly, <F4 as QueryData>::ReadOnly, <F5 as QueryData>::ReadOnly, <F6 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData, F4: QueryData, F5: QueryData, F6: QueryData, F7: QueryData> QueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly, <F3 as QueryData>::ReadOnly, <F4 as QueryData>::ReadOnly, <F5 as QueryData>::ReadOnly, <F6 as QueryData>::ReadOnly, <F7 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData, F4: QueryData, F5: QueryData, F6: QueryData, F7: QueryData, F8: QueryData> QueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly, <F3 as QueryData>::ReadOnly, <F4 as QueryData>::ReadOnly, <F5 as QueryData>::ReadOnly, <F6 as QueryData>::ReadOnly, <F7 as QueryData>::ReadOnly, <F8 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>, Option<<F8 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData, F4: QueryData, F5: QueryData, F6: QueryData, F7: QueryData, F8: QueryData, F9: QueryData> QueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

type ReadOnly = AnyOf<(<F0 as QueryData>::ReadOnly, <F1 as QueryData>::ReadOnly, <F2 as QueryData>::ReadOnly, <F3 as QueryData>::ReadOnly, <F4 as QueryData>::ReadOnly, <F5 as QueryData>::ReadOnly, <F6 as QueryData>::ReadOnly, <F7 as QueryData>::ReadOnly, <F8 as QueryData>::ReadOnly, <F9 as QueryData>::ReadOnly)>

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>, Option<<F8 as QueryData>::Item<'w, 's>>, Option<<F9 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl<F0: QueryData, F1: QueryData, F2: QueryData, F3: QueryData, F4: QueryData, F5: QueryData, F6: QueryData, F7: QueryData, F8: QueryData, F9: QueryData, F10: QueryData> QueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

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

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>, Option<<F8 as QueryData>::Item<'w, 's>>, Option<<F9 as QueryData>::Item<'w, 's>>, Option<<F10 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

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

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

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

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>, Option<<F8 as QueryData>::Item<'w, 's>>, Option<<F9 as QueryData>::Item<'w, 's>>, Option<<F10 as QueryData>::Item<'w, 's>>, Option<<F11 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

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

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

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

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>, Option<<F8 as QueryData>::Item<'w, 's>>, Option<<F9 as QueryData>::Item<'w, 's>>, Option<<F10 as QueryData>::Item<'w, 's>>, Option<<F11 as QueryData>::Item<'w, 's>>, Option<<F12 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

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

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

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

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>, Option<<F8 as QueryData>::Item<'w, 's>>, Option<<F9 as QueryData>::Item<'w, 's>>, Option<<F10 as QueryData>::Item<'w, 's>>, Option<<F11 as QueryData>::Item<'w, 's>>, Option<<F12 as QueryData>::Item<'w, 's>>, Option<<F13 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

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

Source§

const IS_READ_ONLY: bool

True if this query is read-only and may not perform mutable access.
Source§

const IS_ARCHETYPAL: bool

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

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

The read-only variant of this QueryData, which satisfies the ReadOnlyQueryData trait.
Source§

type Item<'w, 's> = (Option<<F0 as QueryData>::Item<'w, 's>>, Option<<F1 as QueryData>::Item<'w, 's>>, Option<<F2 as QueryData>::Item<'w, 's>>, Option<<F3 as QueryData>::Item<'w, 's>>, Option<<F4 as QueryData>::Item<'w, 's>>, Option<<F5 as QueryData>::Item<'w, 's>>, Option<<F6 as QueryData>::Item<'w, 's>>, Option<<F7 as QueryData>::Item<'w, 's>>, Option<<F8 as QueryData>::Item<'w, 's>>, Option<<F9 as QueryData>::Item<'w, 's>>, Option<<F10 as QueryData>::Item<'w, 's>>, Option<<F11 as QueryData>::Item<'w, 's>>, Option<<F12 as QueryData>::Item<'w, 's>>, Option<<F13 as QueryData>::Item<'w, 's>>, Option<<F14 as QueryData>::Item<'w, 's>>)

The item returned by this WorldQuery This will be the data retrieved by the query, and is visible to the end user when calling e.g. Query<Self>::get.
Source§

fn shrink<'wlong: 'wshort, 'wshort, 's>( item: Self::Item<'wlong, 's>, ) -> Self::Item<'wshort, 's>

This function manually implements subtyping for the query items.
Source§

unsafe fn fetch<'w, 's>( _state: &'s Self::State, _fetch: &mut Self::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> Option<Self::Item<'w, 's>>

Fetch Self::Item for either the given entity in the current Table, or for the given entity in the current Archetype. This must always be called after WorldQuery::set_table with a table_row in the range of the current Table or after WorldQuery::set_archetype with an entity in the current archetype. Accesses components registered in WorldQuery::update_component_access. Read more
Source§

fn iter_access(state: &Self::State) -> impl Iterator<Item = EcsAccessType<'_>>

Returns an iterator over the access needed by QueryData::fetch. Access conflicts are usually checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement a way of checking for access conflicts in a non-allocating way.
Source§

fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )

Offers additional access above what we requested in update_component_access. Implementations may add additional access that is a subset of available_access and does not conflict with anything in access, and must update access to include that access. Read more
Source§

impl ReadOnlyQueryData for AnyOf<()>

Source§

impl<F: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F,)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

Source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ReleaseStateQueryData for AnyOf<()>

Source§

fn release_state<'w>((): Self::Item<'w, '_>) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F,)>

Source§

fn release_state<'w>((i): Self::Item<'w, '_>) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1)>

Source§

fn release_state<'w>((i0, i1): Self::Item<'w, '_>) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2)>

Source§

fn release_state<'w>( (i0, i1, i2): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3)>

Source§

fn release_state<'w>( (i0, i1, i2, i3): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData, F4: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3, F4)>

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData, F4: ReleaseStateQueryData, F5: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData, F4: ReleaseStateQueryData, F5: ReleaseStateQueryData, F6: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData, F4: ReleaseStateQueryData, F5: ReleaseStateQueryData, F6: ReleaseStateQueryData, F7: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData, F4: ReleaseStateQueryData, F5: ReleaseStateQueryData, F6: ReleaseStateQueryData, F7: ReleaseStateQueryData, F8: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7, i8): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData, F4: ReleaseStateQueryData, F5: ReleaseStateQueryData, F6: ReleaseStateQueryData, F7: ReleaseStateQueryData, F8: ReleaseStateQueryData, F9: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl<F0: ReleaseStateQueryData, F1: ReleaseStateQueryData, F2: ReleaseStateQueryData, F3: ReleaseStateQueryData, F4: ReleaseStateQueryData, F5: ReleaseStateQueryData, F6: ReleaseStateQueryData, F7: ReleaseStateQueryData, F8: ReleaseStateQueryData, F9: ReleaseStateQueryData, F10: ReleaseStateQueryData> ReleaseStateQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

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

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

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

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

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

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

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

Source§

fn release_state<'w>( (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14): Self::Item<'w, '_>, ) -> Self::Item<'w, 'static>

Releases the borrow from the query state by converting an item to have a 'static state lifetime.
Source§

impl SingleEntityQueryData for AnyOf<()>

Source§

impl<F: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F,)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData, F4: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3, F4)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData, F4: SingleEntityQueryData, F5: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData, F4: SingleEntityQueryData, F5: SingleEntityQueryData, F6: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData, F4: SingleEntityQueryData, F5: SingleEntityQueryData, F6: SingleEntityQueryData, F7: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData, F4: SingleEntityQueryData, F5: SingleEntityQueryData, F6: SingleEntityQueryData, F7: SingleEntityQueryData, F8: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData, F4: SingleEntityQueryData, F5: SingleEntityQueryData, F6: SingleEntityQueryData, F7: SingleEntityQueryData, F8: SingleEntityQueryData, F9: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

Source§

impl<F0: SingleEntityQueryData, F1: SingleEntityQueryData, F2: SingleEntityQueryData, F3: SingleEntityQueryData, F4: SingleEntityQueryData, F5: SingleEntityQueryData, F6: SingleEntityQueryData, F7: SingleEntityQueryData, F8: SingleEntityQueryData, F9: SingleEntityQueryData, F10: SingleEntityQueryData> SingleEntityQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl WorldQuery for AnyOf<()>

Source§

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
Source§

type Fetch<'w> = ()

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

impl<F: WorldQuery> WorldQuery for AnyOf<(F,)>

Source§

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
Source§

type Fetch<'w> = ((<F as WorldQuery>::Fetch<'w>, bool),)

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

impl<F0: WorldQuery, F1: WorldQuery> WorldQuery for AnyOf<(F0, F1)>

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

impl<F0: WorldQuery, F1: WorldQuery, F2: WorldQuery> WorldQuery for AnyOf<(F0, F1, F2)>

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool), (<F2 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

impl<F0: WorldQuery, F1: WorldQuery, F2: WorldQuery, F3: WorldQuery> WorldQuery for AnyOf<(F0, F1, F2, F3)>

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool), (<F2 as WorldQuery>::Fetch<'w>, bool), (<F3 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

impl<F0: WorldQuery, F1: WorldQuery, F2: WorldQuery, F3: WorldQuery, F4: WorldQuery> WorldQuery for AnyOf<(F0, F1, F2, F3, F4)>

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool), (<F2 as WorldQuery>::Fetch<'w>, bool), (<F3 as WorldQuery>::Fetch<'w>, bool), (<F4 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

impl<F0: WorldQuery, F1: WorldQuery, F2: WorldQuery, F3: WorldQuery, F4: WorldQuery, F5: WorldQuery> WorldQuery for AnyOf<(F0, F1, F2, F3, F4, F5)>

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool), (<F2 as WorldQuery>::Fetch<'w>, bool), (<F3 as WorldQuery>::Fetch<'w>, bool), (<F4 as WorldQuery>::Fetch<'w>, bool), (<F5 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool), (<F2 as WorldQuery>::Fetch<'w>, bool), (<F3 as WorldQuery>::Fetch<'w>, bool), (<F4 as WorldQuery>::Fetch<'w>, bool), (<F5 as WorldQuery>::Fetch<'w>, bool), (<F6 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool), (<F2 as WorldQuery>::Fetch<'w>, bool), (<F3 as WorldQuery>::Fetch<'w>, bool), (<F4 as WorldQuery>::Fetch<'w>, bool), (<F5 as WorldQuery>::Fetch<'w>, bool), (<F6 as WorldQuery>::Fetch<'w>, bool), (<F7 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

type Fetch<'w> = ((<F0 as WorldQuery>::Fetch<'w>, bool), (<F1 as WorldQuery>::Fetch<'w>, bool), (<F2 as WorldQuery>::Fetch<'w>, bool), (<F3 as WorldQuery>::Fetch<'w>, bool), (<F4 as WorldQuery>::Fetch<'w>, bool), (<F5 as WorldQuery>::Fetch<'w>, bool), (<F6 as WorldQuery>::Fetch<'w>, bool), (<F7 as WorldQuery>::Fetch<'w>, bool), (<F8 as WorldQuery>::Fetch<'w>, bool))

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

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

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

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

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

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

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

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

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

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

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.
Source§

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

Source§

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
Source§

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

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

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.
Source§

fn shrink_fetch<'wlong: 'wshort, 'wshort>( fetch: Self::Fetch<'wlong>, ) -> Self::Fetch<'wshort>

This function manually implements subtyping for the query fetches.
Source§

unsafe fn init_fetch<'w, 's>( _world: UnsafeWorldCell<'w>, state: &'s Self::State, _last_run: Tick, _this_run: Tick, ) -> Self::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
Source§

unsafe fn set_archetype<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

unsafe fn set_table<'w, 's>( _fetch: &mut Self::Fetch<'w>, _state: &'s Self::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
Source§

fn update_component_access(state: &Self::State, access: &mut FilteredAccess)

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

fn init_nested_access( state: &Self::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
Source§

fn init_state(world: &mut World) -> Self::State

Creates and initializes a State for this WorldQuery type.
Source§

fn get_state(components: &Components) -> Option<Self::State>

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

fn matches_component_set( _state: &Self::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool

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

fn update_archetypes(state: &mut Self::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.

Auto Trait Implementations§

§

impl<T> Freeze for AnyOf<T>

§

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

§

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

§

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

§

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

§

impl<T> UnsafeUnpin for AnyOf<T>

§

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

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

impl<T> Downcast for T
where T: Any,

Source§

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.
Source§

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.
Source§

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.
Source§

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.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

Source§

const WITNESS: W = W::MAKE

A constant of the type witness
Source§

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

Source§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
Source§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoResult<T> for T

Source§

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

Converts this type into the system output type.
Source§

impl<A> Is for A
where A: Any,

Source§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. Read more
Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

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

Source§

impl<T> WasmNotSendSync for T

Source§

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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more