logo
pub trait RunSystem: 'static + Send + Sync {
    type Param: SystemParam;
    fn run(
        param: <<Self::Param as SystemParam>::Fetch as SystemParamFetch<'_, '_>>::Item
    ); fn system(world: &mut World) -> ParamSystem<Self::Param> { ... } }
Expand description

A trait for defining systems with a SystemParam associated type.

This facilitates the creation of systems that are generic over some trait and that use that trait’s associated types as SystemParams.

Associated Types

The SystemParam type passed to the system when it runs.

Required methods

Runs the system.

Provided methods

Creates a concrete instance of the system for the specified World.

Implementors