pub trait WindowProvider: 'static {
type Handle;
// Required methods
fn create(config: &WindowConfig) -> Self;
fn size(handle: &Self::Handle) -> (u32, u32);
fn handle(&self) -> &Self::Handle;
}Required Associated Types§
Required Methods§
fn create(config: &WindowConfig) -> Self
fn size(handle: &Self::Handle) -> (u32, u32)
fn handle(&self) -> &Self::Handle
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".