Skip to main content

SystemRunner

Trait SystemRunner 

Source
pub trait SystemRunner: Send {
    // Required method
    fn run(&mut self, ctx: &mut dyn SystemContext);
}
Expand description

Trait for system execution functions.

Implemented by closures wrapped via SystemBuilder.

Required Methods§

Source

fn run(&mut self, ctx: &mut dyn SystemContext)

Runs the system for one tick with a context.

Implementors§

Source§

impl<F: FnMut(&mut dyn SystemContext) + Send> SystemRunner for F

Blanket implementation for closures.