pub type DynIconSurface = IconSurface<Box<dyn Any>>;
Aliased Type§
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 IconSurface<Box<dyn Any>>
impl IconSurface<Box<dyn Any>>
sourcepub fn downcast<T, R>(self) -> IconSurface<Element<'static, (), T, R>>where
T: 'static,
R: 'static,
pub fn downcast<T, R>(self) -> IconSurface<Element<'static, (), T, R>>where
T: 'static,
R: 'static,
Downcast element
to concrete type Element<(), T, R>
Panics if type doesn’t match