#[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.