pub trait WinitComponent {
// Required method
fn on_event(
&mut self,
event: &mut Event<'_, ()>,
control_flow: &mut ControlFlow,
);
}Expand description
Trait for handling winit events on component.
Required Methods§
fn on_event( &mut self, event: &mut Event<'_, ()>, control_flow: &mut ControlFlow, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".