PlatformWindowAttributes

Trait PlatformWindowAttributes 

pub trait PlatformWindowAttributes:
    AsAny
    + Debug
    + Send
    + Sync {
    // Required method
    fn box_clone(&self) -> Box<dyn PlatformWindowAttributes>;
}

Required Methods§

Implementations§

§

impl dyn PlatformWindowAttributes + '_

pub fn cast_ref<T>(&self) -> Option<&T>

Downcast to the backend concrete type.

Returns None if the object was not from that backend.

pub fn cast_mut<T>(&mut self) -> Option<&mut T>

Mutable downcast to the backend concrete type.

Returns None if the object was not from that backend.

pub fn cast<T>( self: Box<dyn PlatformWindowAttributes + '_>, ) -> Result<Box<T>, Box<dyn PlatformWindowAttributes + '_>>

Owned downcast to the backend concrete type.

Returns Err with self if the object was not from that backend.

Implementations on Foreign Types§

§

impl PlatformWindowAttributes for WindowAttributesWayland

§

impl PlatformWindowAttributes for WindowAttributesX11

Implementors§