pub enum Color {
Named(String),
Hex(String),
Rgb(u8, u8, u8),
}Expand description
Color specification for borders and backgrounds
Variants§
Named(String)
Named color (e.g., “red”, “blue”, “green”)
Hex(String)
Hexadecimal color code (e.g., “#FF0000”, “#00FF00”)
Rgb(u8, u8, u8)
RGB color values (red, green, blue components 0-255)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin 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