pub enum Color {
Show 17 variants
None,
Black,
Purple,
Red,
Orange,
Yellow,
LightGreen,
Green,
DarkGreen,
DarkBlue,
Blue,
LightBlue,
Cyan,
White,
LightGray,
Gray,
DarkGray,
}Expand description
A pointer to a color in the color palette.
Variants§
None
No color (100% transparency).
Black
Black color: #1A1C2C.
Purple
Purple color: #5D275D.
Red
Red color: #B13E53.
Orange
Orange color: #EF7D57.
Yellow
Yellow color: #FFCD75.
LightGreen
Light green color: #A7F070.
Green
Green color: #38B764.
DarkGreen
Dark green color: #257179.
DarkBlue
Dark blue color: #29366F.
Blue
Blue color: #3B5DC9.
LightBlue
Light blue color: #41A6F6.
Cyan
Cyan color: #73EFF7.
White
White color: #F4F4F4.
LightGray
Light gray color: #94B0C2.
Gray
Gray color: #566C86.
DarkGray
Dark gray color: #333C57.
Trait Implementations§
Source§impl Ord for Color
impl Ord for Color
Source§impl PartialOrd for Color
impl PartialOrd for Color
impl Copy for Color
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.