usesdl2::{event::Event,render::Canvas,video::Window};/// Trait for user application logic.
////// Implement this trait to define how your application updates, handles events, and renders.
pubtraitAppBehavior{/// Called on each update frame.
/// `dt` is the delta time since the last update in seconds.
fnon_update(&mutself, dt:f64);/// Handle events from the SDL event pump.
fnon_event(&mutself, event:&Event);/// Render the application state to the canvas.
fnon_render(&mutself, canvas:&mutCanvas<Window>);}