#[non_exhaustive]
pub enum Icon {
File(PathBuf),
Raw(Vec<u8>),
Rgba {
rgba: Vec<u8>,
width: u32,
height: u32,
},
}
Expand description
A icon definition.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File(PathBuf)
Available on crate features
icon-ico
or icon-png
only.Icon from file path.
Raw(Vec<u8>)
Available on crate features
icon-ico
or icon-png
only.Icon from raw RGBA bytes. Width and height is parsed at runtime.
Rgba
Icon from raw RGBA bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnwindSafe for Icon
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more