pub trait WindowHandler {
// Required methods
fn on_frame(&mut self, window: &mut Window<'_>);
fn on_event(&mut self, window: &mut Window<'_>, event: Event) -> EventStatus;
}Required Methods§
fn on_frame(&mut self, window: &mut Window<'_>)
fn on_event(&mut self, window: &mut Window<'_>, event: Event) -> EventStatus
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".