pub enum ChatColor {
Show 18 variants
Black,
DarkBlue,
DarkGreen,
DarkCyan,
DarkRed,
Purple,
Gold,
Gray,
DarkGray,
Blue,
Green,
Cyan,
Red,
Pink,
Yellow,
White,
Custom(String),
Reset,
}
Expand description
The different colors a ChatComponent
can have.
§TODO
Automatically find nearest value when serializing ChatColor::Custom
for older versions
Variants§
Black
DarkBlue
DarkGreen
DarkCyan
DarkRed
Purple
Gold
Gray
DarkGray
Blue
Green
Cyan
Red
Pink
Yellow
White
Custom(String)
This field is ignored for versions older than 1.16.
See ChatColor::custom()
.
Reset
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatColor
impl RefUnwindSafe for ChatColor
impl Send for ChatColor
impl Sync for ChatColor
impl Unpin for ChatColor
impl UnwindSafe for ChatColor
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