pub struct Icon {
pub width: u32,
pub height: u32,
pub pixels: Arc<[u8]>,
}Expand description
Shared RGBA icon data.
Cloning an icon is cheap because the pixel storage is reference-counted.
Fields§
§width: u32Icon width in pixels.
height: u32Icon height in pixels.
pixels: Arc<[u8]>Pixel data in row-major RGBA format.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Icon
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnsafeUnpin for Icon
impl UnwindSafe 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