pub enum Color {
Blue,
Purple,
Pink,
Orange,
Red,
Green,
Gray,
Hex(String),
}
Expand description
Represents a color with various predefined options and a custom hex value.
The Color
enum defines a list of supported colors, each with an
associated variant. Additionally, it supports custom colors defined
by a hex string.
§Variants
Blue
- The blue color.Purple
- The purple color. This is the default color.Pink
- The pink color.Orange
- The orange color.Red
- The red color.Green
- The green color.Gray
- The gray color.Hex(String)
- A custom color defined by a hex string.
Variants§
Blue
The blue color.
Purple
The purple color.
Pink
The pink color.
Orange
The orange color.
Red
The red color.
Green
The green color.
Gray
The gray color.
Hex(String)
Others colors as hex.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Color
impl<'de> Deserialize<'de> for Color
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Color
impl StructuralPartialEq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.