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