logo

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

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

The state of a SystemParam.

Safety

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

Associated Types

Values of this type can be used to adjust the behavior of the system parameter. For instance, this can be used to pass values from a Plugin to a System, or to control the behavior of the System.

The default configuration of the parameter is set by SystemParamState::default_config. To change it, invoke FunctionSystem::config when creating the system.

See FunctionSystem::config for more information and examples.

Required methods

Provided methods

Implementations on Foreign Types

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Implementors