Trait bevy::ecs::system::SystemParamState[]

pub unsafe trait SystemParamState: 'static + Send + Sync {
    type Config: Send + Sync;
    pub fn init(
        world: &mut World,
        system_state: &mut SystemState,
        config: Self::Config
    ) -> Self;
pub fn default_config() -> Self::Config; pub fn new_archetype(
        &mut self,
        _archetype: &Archetype,
        _system_state: &mut SystemState
    ) { ... }
pub fn apply(&mut self, _world: &mut World) { ... } }

Safety

It is the implementor’s responsibility to ensure system_state is populated with the exact World access used by the SystemParamState (and associated FetchSystemParam). Additionally, it is the implementor’s responsibility to ensure there is no conflicting access across all SystemParams.

Associated Types

type Config: Send + Sync

Loading content...

Required methods

pub fn init(
    world: &mut World,
    system_state: &mut SystemState,
    config: Self::Config
) -> Self

pub fn default_config() -> Self::Config

Loading content...

Provided methods

pub fn new_archetype(
    &mut self,
    _archetype: &Archetype,
    _system_state: &mut SystemState
)

pub fn apply(&mut self, _world: &mut World)

Loading content...

Implementations on Foreign Types

impl<P0, P1, P2, P3> SystemParamState for (P0, P1, P2, P3) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState,
    P9: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config, <P9 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4> SystemParamState for (P0, P1, P2, P3, P4) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState,
    P9: SystemParamState,
    P10: SystemParamState,
    P11: SystemParamState,
    P12: SystemParamState,
    P13: SystemParamState,
    P14: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config, <P9 as SystemParamState>::Config, <P10 as SystemParamState>::Config, <P11 as SystemParamState>::Config, <P12 as SystemParamState>::Config, <P13 as SystemParamState>::Config, <P14 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState,
    P9: SystemParamState,
    P10: SystemParamState,
    P11: SystemParamState,
    P12: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config, <P9 as SystemParamState>::Config, <P10 as SystemParamState>::Config, <P11 as SystemParamState>::Config, <P12 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState,
    P9: SystemParamState,
    P10: SystemParamState,
    P11: SystemParamState,
    P12: SystemParamState,
    P13: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config, <P9 as SystemParamState>::Config, <P10 as SystemParamState>::Config, <P11 as SystemParamState>::Config, <P12 as SystemParamState>::Config, <P13 as SystemParamState>::Config)

impl<P0, P1> SystemParamState for (P0, P1) where
    P0: SystemParamState,
    P1: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config)

impl<P0> SystemParamState for (P0,) where
    P0: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config,)

impl<P0, P1, P2, P3, P4, P5, P6> SystemParamState for (P0, P1, P2, P3, P4, P5, P6) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config)

impl SystemParamState for ()

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = ()

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState,
    P9: SystemParamState,
    P10: SystemParamState,
    P11: SystemParamState,
    P12: SystemParamState,
    P13: SystemParamState,
    P14: SystemParamState,
    P15: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config, <P9 as SystemParamState>::Config, <P10 as SystemParamState>::Config, <P11 as SystemParamState>::Config, <P12 as SystemParamState>::Config, <P13 as SystemParamState>::Config, <P14 as SystemParamState>::Config, <P15 as SystemParamState>::Config)

impl<P0, P1, P2> SystemParamState for (P0, P1, P2) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState,
    P9: SystemParamState,
    P10: SystemParamState,
    P11: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config, <P9 as SystemParamState>::Config, <P10 as SystemParamState>::Config, <P11 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5> SystemParamState for (P0, P1, P2, P3, P4, P5) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config)

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10> SystemParamState for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) where
    P0: SystemParamState,
    P1: SystemParamState,
    P2: SystemParamState,
    P3: SystemParamState,
    P4: SystemParamState,
    P5: SystemParamState,
    P6: SystemParamState,
    P7: SystemParamState,
    P8: SystemParamState,
    P9: SystemParamState,
    P10: SystemParamState

SAFE: implementors of each SystemParamState in the tuple have validated their impls

type Config = (<P0 as SystemParamState>::Config, <P1 as SystemParamState>::Config, <P2 as SystemParamState>::Config, <P3 as SystemParamState>::Config, <P4 as SystemParamState>::Config, <P5 as SystemParamState>::Config, <P6 as SystemParamState>::Config, <P7 as SystemParamState>::Config, <P8 as SystemParamState>::Config, <P9 as SystemParamState>::Config, <P10 as SystemParamState>::Config)

Loading content...

Implementors

impl SystemParamState for ArchetypesState

type Config = ()

impl SystemParamState for BundlesState

type Config = ()

impl SystemParamState for CommandQueue

type Config = ()

impl SystemParamState for ComponentsState

type Config = ()

impl SystemParamState for EntitiesState

type Config = ()

impl SystemParamState for SystemChangeTickState

type Config = ()

impl<Q0, F0> SystemParamState for QuerySetState<(QueryState<Q0, F0>,)> where
    Q0: 'static + WorldQuery,
    F0: 'static + WorldQuery,
    <F0 as WorldQuery>::Fetch: FilterFetch

type Config = ()

impl<Q0, Q1, F0, F1> SystemParamState for QuerySetState<(QueryState<Q0, F0>, QueryState<Q1, F1>)> where
    Q0: 'static + WorldQuery,
    F0: 'static + WorldQuery,
    Q1: 'static + WorldQuery,
    F1: 'static + WorldQuery,
    <F0 as WorldQuery>::Fetch: FilterFetch,
    <F1 as WorldQuery>::Fetch: FilterFetch

type Config = ()

impl<Q0, Q1, Q2, F0, F1, F2> SystemParamState for QuerySetState<(QueryState<Q0, F0>, QueryState<Q1, F1>, QueryState<Q2, F2>)> where
    Q0: 'static + WorldQuery,
    F0: 'static + WorldQuery,
    Q1: 'static + WorldQuery,
    F1: 'static + WorldQuery,
    Q2: 'static + WorldQuery,
    F2: 'static + WorldQuery,
    <F0 as WorldQuery>::Fetch: FilterFetch,
    <F1 as WorldQuery>::Fetch: FilterFetch,
    <F2 as WorldQuery>::Fetch: FilterFetch

type Config = ()

impl<Q0, Q1, Q2, Q3, F0, F1, F2, F3> SystemParamState for QuerySetState<(QueryState<Q0, F0>, QueryState<Q1, F1>, QueryState<Q2, F2>, QueryState<Q3, F3>)> where
    Q0: 'static + WorldQuery,
    F0: 'static + WorldQuery,
    Q1: 'static + WorldQuery,
    F1: 'static + WorldQuery,
    Q2: 'static + WorldQuery,
    F2: 'static + WorldQuery,
    Q3: 'static + WorldQuery,
    F3: 'static + WorldQuery,
    <F0 as WorldQuery>::Fetch: FilterFetch,
    <F1 as WorldQuery>::Fetch: FilterFetch,
    <F2 as WorldQuery>::Fetch: FilterFetch,
    <F3 as WorldQuery>::Fetch: FilterFetch

type Config = ()

impl<Q, F> SystemParamState for QueryState<Q, F> where
    F: 'static + WorldQuery,
    Q: 'static + WorldQuery,
    <F as WorldQuery>::Fetch: FilterFetch

type Config = ()

impl<T> SystemParamState for LocalState<T> where
    T: Component + FromWorld

type Config = Option<T>

impl<T> SystemParamState for NonSendMutState<T> where
    T: 'static, 

type Config = ()

impl<T> SystemParamState for NonSendState<T> where
    T: 'static, 

type Config = ()

impl<T> SystemParamState for OptionResMutState<T> where
    T: Component

type Config = ()

impl<T> SystemParamState for OptionResState<T> where
    T: Component

type Config = ()

impl<T> SystemParamState for RemovedComponentsState<T> where
    T: Component

type Config = ()

impl<T> SystemParamState for ResMutState<T> where
    T: Component

type Config = ()

impl<T> SystemParamState for ResState<T> where
    T: Component

type Config = ()

impl<TSystemParamState> SystemParamState for DrawContextState<TSystemParamState> where
    TSystemParamState: SystemParamState

type Config = <TSystemParamState as SystemParamState>::Config

impl<TSystemParamState, T> SystemParamState for EventReaderState<TSystemParamState, T> where
    T: Component,
    TSystemParamState: SystemParamState

type Config = <TSystemParamState as SystemParamState>::Config

impl<TSystemParamState, T> SystemParamState for EventWriterState<TSystemParamState, T> where
    T: Component,
    TSystemParamState: SystemParamState

type Config = <TSystemParamState as SystemParamState>::Config

Loading content...