Trait Run

Source
pub trait Run<'a> {
    // Required method
    fn run(&mut self, world: &'a World);
}
Expand description

Trait for fetching data and running systems. Automatically implemented for systems.

Required Methods§

Source

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

Runs the system now.

§Panics

Panics if the system tries to fetch resources which are borrowed in an incompatible way already (tries to read from a resource which is already written to or tries to write to a resource which is read from).

Implementors§

Source§

impl<'a, T> Run<'a> for T
where T: System<'a>,