pub enum BasicColor {
Show 16 variants
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
BrightBlack,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
}Expand description
A color from the basic 16-color palette.
Variants§
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
BrightBlack
BrightRed
BrightGreen
BrightYellow
BrightBlue
BrightMagenta
BrightCyan
BrightWhite
Implementations§
Source§impl BasicColor
impl BasicColor
Sourcepub const fn not_bright(self) -> Self
pub const fn not_bright(self) -> Self
Return the non-bright variant of this color.
Trait Implementations§
Source§impl Clone for BasicColor
impl Clone for BasicColor
Source§fn clone(&self) -> BasicColor
fn clone(&self) -> BasicColor
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 BasicColor
impl Debug for BasicColor
Source§impl From<BasicColor> for Color
impl From<BasicColor> for Color
Source§fn from(color: BasicColor) -> Self
fn from(color: BasicColor) -> Self
Converts to this type from the input type.
Source§impl Hash for BasicColor
impl Hash for BasicColor
Source§impl Ord for BasicColor
impl Ord for BasicColor
Source§fn cmp(&self, other: &BasicColor) -> Ordering
fn cmp(&self, other: &BasicColor) -> 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 BasicColor
impl PartialEq for BasicColor
Source§impl PartialOrd for BasicColor
impl PartialOrd for BasicColor
impl Copy for BasicColor
impl Eq for BasicColor
impl StructuralPartialEq for BasicColor
Auto Trait Implementations§
impl Freeze for BasicColor
impl RefUnwindSafe for BasicColor
impl Send for BasicColor
impl Sync for BasicColor
impl Unpin for BasicColor
impl UnwindSafe for BasicColor
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