pub trait Script: Send {
// Provided methods
fn init(&mut self, ctx: &impl Context) { ... }
fn ready(&mut self, ctx: &impl Context) { ... }
fn update(&mut self, ctx: &impl Context, delta: f32) { ... }
fn event(&mut self, ctx: &impl Context, event: Event) { ... }
}Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.