Trait bones_lib::ecs::prelude::System

source ·
pub trait System<In, Out> {
    // Required methods
    fn run(&mut self, world: &World, input: In) -> Out;
    fn name(&self) -> &str;
}
Expand description

Trait implemented by systems.

Required Methods§

source

fn run(&mut self, world: &World, input: In) -> Out

Run the system.

source

fn name(&self) -> &str

Get a best-effort name for the system, used in diagnostics.

Implementors§

source§

impl<In, Out> System<In, Out> for StaticSystem<In, Out>