pub trait System {
type World: Default + Decomponentize + Componentize;
type Driver: DriverMode;
const MAX_SIZE: usize = <Self::World>::MAX_SIZE;
// Required method
fn update(&mut self, world: &mut Self::World);
// Provided methods
fn init_world(&mut self) -> Self::World { ... }
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized { ... }
}Required Associated Types§
type World: Default + Decomponentize + Componentize
type Driver: DriverMode
Provided Associated Constants§
Required Methods§
Provided Methods§
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
Object Safety§
This trait is not object safe.