pub enum Icon {
Error,
Info,
Question,
Warning,
IconPath(PathBuf),
}
Expand description
Represents an icon. Icon::Error, Icon::Info, Icon::Question, and Icon::Warning represent standard icons, while Icon::IconPath allows you to pass the path of a custom icon.
Variants§
Error
An error icon
Info
An info icon
Question
A question icon
Warning
A warning icon
IconPath(PathBuf)
A path to a custom icon
Trait Implementations§
impl StructuralPartialEq for Icon
Auto Trait Implementations§
impl Freeze for Icon
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin 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