#[non_exhaustive]pub enum Color {
Base,
Healthy,
Info,
Warn,
Error,
X,
Y,
Z,
Hex(u32),
}Expand description
Basic debugging theme colors.
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.
Base
Base line color. E.g. white on black background.
Healthy
Some shade of green.
Info
Some shade of blue.
Warn
Some shade of yellow.
Error
Some shade of red.
X
Some shade of red (Rgb = XYZ)
Y
Some shade of green (rGb = XYZ)
Z
Some shade of blue (rgB = XYZ)
Hex(u32)
A specific color by hexcode. The MSB is red, the LSB is alpha.
Trait Implementations§
impl Copy for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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