Type Alias DynIconSurface

Source
pub type DynIconSurface = IconSurface<Box<dyn Any>>;

Aliased Type§

pub struct DynIconSurface {
    pub element: Box<dyn Any>,
    pub state: State,
    pub offset: Vector,
}

Fields§

§element: Box<dyn Any>§state: State§offset: Vector

Implementations§

Source§

impl DynIconSurface

Source

pub fn downcast<T: 'static, R: 'static>( self, ) -> IconSurface<Element<'static, (), T, R>>

Downcast element to concrete type Element<(), T, R>

Panics if type doesn’t match