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§
Sourcefn run(&mut self, ctx: &mut dyn SystemContext)
fn run(&mut self, ctx: &mut dyn SystemContext)
Runs the system for one tick with a context.
Implementors§
impl<F: FnMut(&mut dyn SystemContext) + Send> SystemRunner for F
Blanket implementation for closures.