PlatformWindowAttributes

Trait PlatformWindowAttributes 

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

Required Methods§

Implementations§

Source§

impl dyn PlatformWindowAttributes + '_

Source

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

Downcast to the backend concrete type.

Returns None if the object was not from that backend.

Source

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

Mutable downcast to the backend concrete type.

Returns None if the object was not from that backend.

Source

pub fn cast<T: PlatformWindowAttributes>( self: Box<Self>, ) -> Result<Box<T>, Box<Self>>

Owned downcast to the backend concrete type.

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

Implementors§