pub trait Window {
// Required methods
fn new(id: Id) -> Self;
fn on_resize(&mut self, size: Size);
fn on_close(&mut self);
fn is_closed(&self) -> bool;
}Required Methods§
fn new(id: Id) -> Self
fn on_resize(&mut self, size: Size)
fn on_close(&mut self)
fn is_closed(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.