pub trait App {
// Required methods
fn update(&mut self, ctx: &mut Context) -> Result<()>;
fn render(&mut self, pix: &mut Pixels, blending_factor: f64) -> Result<()>;
// Provided method
fn handle(&mut self, _event: &Event<()>) -> Result<()> { ... }
}
Expand description
Application trait.