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
impl DynIconSurface
Sourcepub fn downcast<T: 'static, R: 'static>(
self,
) -> IconSurface<Element<'static, (), T, R>>
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