Skip to main content

WindowProvider

Trait WindowProvider 

Source
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§

Source

fn create(config: &WindowConfig) -> Self

Source

fn size(handle: &Self::Handle) -> (u32, u32)

Source

fn handle(&self) -> &Self::Handle

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§