SystemParamState

Trait SystemParamState 

Source
pub unsafe trait SystemParamState:
    Send
    + Sync
    + 'static {
    // Required method
    fn init(world: &mut World, meta: &mut SystemMeta) -> Self;

    // Provided method
    fn apply(&mut self, _world: &mut World) { ... }
}

Required Methods§

Source

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Provided Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SystemParamState for ()

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<A: SystemParamState, B: SystemParamState, C: SystemParamState, D: SystemParamState, E: SystemParamState, F: SystemParamState, G: SystemParamState, H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<B: SystemParamState, C: SystemParamState, D: SystemParamState, E: SystemParamState, F: SystemParamState, G: SystemParamState, H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (B, C, D, E, F, G, H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<C: SystemParamState, D: SystemParamState, E: SystemParamState, F: SystemParamState, G: SystemParamState, H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (C, D, E, F, G, H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<D: SystemParamState, E: SystemParamState, F: SystemParamState, G: SystemParamState, H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (D, E, F, G, H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<E: SystemParamState, F: SystemParamState, G: SystemParamState, H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (E, F, G, H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<F: SystemParamState, G: SystemParamState, H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (F, G, H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<G: SystemParamState, H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (G, H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<H: SystemParamState, I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (H, I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<I: SystemParamState, J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (I, J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<J: SystemParamState, K: SystemParamState, L: SystemParamState> SystemParamState for (J, K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<K: SystemParamState, L: SystemParamState> SystemParamState for (K, L)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Source§

impl<L: SystemParamState> SystemParamState for (L,)

Source§

fn init(world: &mut World, meta: &mut SystemMeta) -> Self

Source§

fn apply(&mut self, world: &mut World)

Implementors§