Trait rfw::ecs::system::SystemParamState[][src]

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

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

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