pub trait System<'a> {
type Dependencies: Nest;
// Required method
fn run(&'a mut self, dependencies: Self::Dependencies);
}
Expand description
Trait that systems must implement.
Required Associated Types§
Sourcetype Dependencies: Nest
type Dependencies: Nest
The components and resources this system needs to run.
Required Methods§
Sourcefn run(&'a mut self, dependencies: Self::Dependencies)
fn run(&'a mut self, dependencies: Self::Dependencies)
Run the system.