pub struct Icon(pub Arc<dyn IconProvider>);Expand description
An icon used for the window titlebar, taskbar, etc.
Tuple Fields§
§0: Arc<dyn IconProvider>Methods from Deref<Target = dyn IconProvider>§
Sourcepub fn cast_ref<T: IconProvider>(&self) -> Option<&T>
pub fn cast_ref<T: IconProvider>(&self) -> Option<&T>
Downcast to the backend concrete type.
Returns None if the object was not from that backend.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Icon
impl !UnwindSafe for Icon
impl Freeze for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnsafeUnpin for Icon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more