pub trait Game {
// Required methods
fn start(&mut self);
fn tick(&mut self, sim_input: SimInput<'_>) -> TickResult;
fn present(&self, present_input: PresentInput<'_>);
}Required Methods§
fn start(&mut self)
fn tick(&mut self, sim_input: SimInput<'_>) -> TickResult
fn present(&self, present_input: PresentInput<'_>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".