pub trait ImGuiPlatform {
type Error: Error + Send + Sync + 'static;
// Required methods
fn init(&mut self) -> Result<(), Self::Error>;
fn handle_event(&mut self, event: &dyn Any) -> Result<bool, Self::Error>;
fn new_frame(&mut self) -> Result<(), Self::Error>;
// Provided method
fn shutdown(&mut self) -> Result<(), Self::Error> { ... }
}Expand description
Trait for platform backends with unified error handling