Trait bevy_ecs::query::FetchState[][src]

pub unsafe trait FetchState: Send + Sync + Sized {
    fn init(world: &mut World) -> Self;
fn update_component_access(&self, access: &mut FilteredAccess<ComponentId>);
fn update_archetype_component_access(
        &self,
        archetype: &Archetype,
        access: &mut Access<ArchetypeComponentId>
    );
fn matches_archetype(&self, archetype: &Archetype) -> bool;
fn matches_table(&self, table: &Table) -> bool; }

State used to construct a 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 Fetch. SAFETY: Implementor must ensure that FetchState::update_component_access and FetchState::update_archetype_component_access exactly reflects the results of FetchState::matches_archetype, FetchState::matches_table, Fetch::archetype_fetch, and Fetch::table_fetch

Required methods

fn init(world: &mut World) -> Self[src]

fn update_component_access(&self, access: &mut FilteredAccess<ComponentId>)[src]

fn update_archetype_component_access(
    &self,
    archetype: &Archetype,
    access: &mut Access<ArchetypeComponentId>
)
[src]

fn matches_archetype(&self, archetype: &Archetype) -> bool[src]

fn matches_table(&self, table: &Table) -> bool[src]

Loading content...

Implementations on Foreign Types

impl FetchState for ()[src]

impl<F0: FetchState> FetchState for (F0,)[src]

impl<F0: FetchState, F1: FetchState> FetchState for (F0, F1)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState> FetchState for (F0, F1, F2)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState> FetchState for (F0, F1, F2, F3)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState> FetchState for (F0, F1, F2, F3, F4)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState> FetchState for (F0, F1, F2, F3, F4, F5)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7, F8)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState, F12: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState, F12: FetchState, F13: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState, F12: FetchState, F13: FetchState, F14: FetchState> FetchState for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)[src]

Loading content...

Implementors

impl FetchState for EntityState[src]

impl FetchState for Or<()>[src]

impl<F0: FetchState> FetchState for Or<(F0,)>[src]

impl<F0: FetchState, F1: FetchState> FetchState for Or<(F0, F1)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState> FetchState for Or<(F0, F1, F2)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState> FetchState for Or<(F0, F1, F2, F3)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState> FetchState for Or<(F0, F1, F2, F3, F4)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState, F12: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState, F12: FetchState, F13: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>[src]

impl<F0: FetchState, F1: FetchState, F2: FetchState, F3: FetchState, F4: FetchState, F5: FetchState, F6: FetchState, F7: FetchState, F8: FetchState, F9: FetchState, F10: FetchState, F11: FetchState, F12: FetchState, F13: FetchState, F14: FetchState> FetchState for Or<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>[src]

impl<T: Bundle> FetchState for WithBundleState<T>[src]

impl<T: Component> FetchState for AddedState<T>[src]

impl<T: Component> FetchState for ChangeTrackersState<T>[src]

impl<T: Component> FetchState for ChangedState<T>[src]

impl<T: Component> FetchState for ReadState<T>[src]

impl<T: Component> FetchState for WithState<T>[src]

impl<T: Component> FetchState for WithoutState<T>[src]

impl<T: Component> FetchState for WriteState<T>[src]

impl<T: FetchState> FetchState for OptionState<T>[src]

Loading content...