cosmic::iced::advanced::clipboard

Type Alias DynIconSurface

source
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>>

source

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

Trait Implementations

source§

impl<E> Debug for IconSurface<E>
where E: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more