System

Trait System 

Source
pub trait System<In, Out> {
    // Required methods
    fn run(&mut self, world: &World, input: In) -> Out;
    fn name(&self) -> &str;
}
Expand description

Trait implemented by systems.

Required Methods§

Source

fn run(&mut self, world: &World, input: In) -> Out

Run the system.

Source

fn name(&self) -> &str

Get a best-effort name for the system, used in diagnostics.

Implementors§

Source§

impl<In, Out> System<In, Out> for StaticSystem<In, Out>