Enum egui_modal::Icon
source · [−]pub enum Icon {
Info,
Warning,
Success,
Error,
Custom((String, Color32)),
}Expand description
An icon. If used, it will be shown next to the body of the modal.
Variants
Info
An info icon
Warning
A warning icon
Success
A success icon
Error
An error icon
Custom((String, Color32))
A custom icon. The first field in the tuple is the text of the icon, and the second field is the color.
Trait Implementations
impl StructuralPartialEq for Icon
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