pub trait SystemStage: Sync + Send {
    // Required methods
    fn id(&self) -> Ulid;
    fn name(&self) -> String;
    fn run(&mut self, world: &World);
    fn add_system(&mut self, system: StaticSystem<(), ()>);
}
Expand description

Trait for system stages. A stage is a

Required Methods§

fn id(&self) -> Ulid

The unique identifier for the stage.

fn name(&self) -> String

The human-readable name for the stage, used for error messages when something goes wrong.

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

Execute the systems on the given world.

fn add_system(&mut self, system: StaticSystem<(), ()>)

Add a system to this stage.

Implementors§