Enum valence_text::color::NamedColor
source · pub enum NamedColor {
Show 16 variants
Black = 0,
DarkBlue = 1,
DarkGreen = 2,
DarkAqua = 3,
DarkRed = 4,
DarkPurple = 5,
Gold = 6,
Gray = 7,
DarkGray = 8,
Blue = 9,
Green = 10,
Aqua = 11,
Red = 12,
LightPurple = 13,
Yellow = 14,
White = 15,
}
Expand description
Named Minecraft color
Variants§
Black = 0
Hex digit: 0
, name: black
DarkBlue = 1
Hex digit: 1
, name: dark_blue
DarkGreen = 2
Hex digit: 2
, name: dark_green
DarkAqua = 3
Hex digit: 3
, name: dark_aqua
DarkRed = 4
Hex digit: 4
, name: dark_red
DarkPurple = 5
Hex digit: 5
, name: dark_purple
Gold = 6
Hex digit: 6
, name: gold
Gray = 7
Hex digit: 7
, name: gray
DarkGray = 8
Hex digit: 8
, name: dark_gray
Blue = 9
Hex digit: 9
, name: blue
Green = 10
Hex digit: a
, name: green
Aqua = 11
Hex digit: b
, name: aqua
Red = 12
Hex digit: c
, name: red
LightPurple = 13
Hex digit: d
, name: light_purple
Yellow = 14
Hex digit: e
, name: yellow
White = 15
Hex digit: f
, name: white
Implementations§
Trait Implementations§
source§impl Clone for NamedColor
impl Clone for NamedColor
source§fn clone(&self) -> NamedColor
fn clone(&self) -> NamedColor
Returns a copy 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 Display for NamedColor
impl Display for NamedColor
source§impl From<NamedColor> for Color
impl From<NamedColor> for Color
source§fn from(value: NamedColor) -> Self
fn from(value: NamedColor) -> Self
Converts to this type from the input type.
source§impl From<NamedColor> for RgbColor
impl From<NamedColor> for RgbColor
source§fn from(value: NamedColor) -> Self
fn from(value: NamedColor) -> Self
Converts to this type from the input type.
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 TryFrom<&str> for NamedColor
impl TryFrom<&str> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.