pub trait System: Send + Sync {
// Required methods
fn run(&mut self, world: &World, dt: f32);
fn access_info(&self) -> AccessInfo;
}Expand description
Bir sistem: her frame’de çalıştırılabilir mantık birimi.
Required Methods§
fn run(&mut self, world: &World, dt: f32)
fn access_info(&self) -> AccessInfo
Trait Implementations§
Source§impl System for Box<dyn System>
impl System for Box<dyn System>
fn run(&mut self, world: &World, dt: f32)
fn access_info(&self) -> AccessInfo
Source§impl SystemExtRunIf for Box<dyn System>
impl SystemExtRunIf for Box<dyn System>
fn run_if_sys<ParamC, Cond: IntoCondition<ParamC>>( self, cond: Cond, ) -> Box<dyn System>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".