pub trait App {
// Required methods
fn update(&mut self, ctx: &mut Context) -> Result<()>;
fn render(&mut self, blending_factor: f64) -> Result<()>;
// Provided method
fn handle(&mut self, _event: Event<()>) -> Result<()> { ... }
}Expand description
Application trait.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".