pub enum NamedColor {
Show 16 variants
Black,
DarkBlue,
DarkGreen,
DarkAqua,
DarkRed,
DarkPurple,
Gold,
Gray,
DarkGray,
Blue,
Green,
Aqua,
Red,
LightPurple,
Yellow,
White,
}Expand description
Named text colors from Minecraft
Variants§
Black
#000000
DarkBlue
#0000AA
DarkGreen
#00AA00
DarkAqua
#00AAAA
DarkRed
#AA0000
DarkPurple
#AA00AA
Gold
#FFAA00
Gray
#AAAAAA
DarkGray
#555555
Blue
#5555FF
Green
#55FF55
Aqua
#55FFFF
Red
#FF5555
LightPurple
#FF55FF
Yellow
#FFFF55
White
#FFFFFF
Trait Implementations§
Source§impl Clone for NamedColor
impl Clone for NamedColor
Source§fn clone(&self) -> NamedColor
fn clone(&self) -> NamedColor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamedColor
impl Debug for NamedColor
Source§impl<'de> Deserialize<'de> for NamedColor
impl<'de> Deserialize<'de> for NamedColor
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
Source§impl Display for NamedColor
impl Display for NamedColor
Source§impl FromStr for NamedColor
impl FromStr for NamedColor
Source§impl Hash for NamedColor
impl Hash for NamedColor
Source§impl Ord for NamedColor
impl Ord for NamedColor
Source§fn cmp(&self, other: &NamedColor) -> Ordering
fn cmp(&self, other: &NamedColor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NamedColor
impl PartialEq for NamedColor
Source§impl PartialOrd for NamedColor
impl PartialOrd for NamedColor
Source§impl Serialize for NamedColor
impl Serialize for NamedColor
impl Copy for NamedColor
impl Eq for NamedColor
impl StructuralPartialEq for NamedColor
Auto Trait Implementations§
impl Freeze for NamedColor
impl RefUnwindSafe for NamedColor
impl Send for NamedColor
impl Sync for NamedColor
impl Unpin for NamedColor
impl UnwindSafe for NamedColor
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