Skip to main content

System

Trait System 

Source
pub trait System<W> {
    // Required methods
    fn name(&self) -> &str;
    fn run(&mut self, ctx: &FrameCtx, world: &mut W);
}
Expand description

A named system that runs each frame against the world W.

Required Methods§

Source

fn name(&self) -> &str

Source

fn run(&mut self, ctx: &FrameCtx, world: &mut W)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§