Trait System

Source
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§

Source

type Dependencies: Nest

The components and resources this system needs to run.

Required Methods§

Source

fn run(&'a mut self, dependencies: Self::Dependencies)

Run the system.

Implementors§