pub enum Colors {
Show 20 variants
TextLight = 0,
TextDark = 1,
Primary = 2,
Secondary = 3,
White = 4,
Black = 5,
Gray = 6,
Red = 7,
Orange = 8,
Yellow = 9,
LimeGreen = 10,
Green = 11,
BlueGreen = 12,
Cyan = 13,
Blue = 14,
DeepBlue = 15,
Purple = 16,
Magenta = 17,
RedPink = 18,
None = 19,
}Expand description
Names/Indexes into the color-table of the palette.
Variants§
TextLight = 0
Colors for light text.
TextDark = 1
Colors for dark text.
Primary = 2
Primary highlight color.
Secondary = 3
Secondary highlight color.
White = 4
Black = 5
Gray = 6
Red = 7
Orange = 8
Yellow = 9
LimeGreen = 10
Green = 11
BlueGreen = 12
Cyan = 13
Blue = 14
DeepBlue = 15
Purple = 16
Magenta = 17
RedPink = 18
None = 19
Undefined color.
Maps to Color::Reset when queried as a color. When used to define a style fg or bg it sets them to Option::None.
Implementations§
Trait Implementations§
Source§impl Ord for Colors
impl Ord for Colors
Source§impl PartialOrd for Colors
impl PartialOrd for Colors
impl Copy for Colors
impl Eq for Colors
impl StructuralPartialEq for Colors
Auto Trait Implementations§
impl Freeze for Colors
impl RefUnwindSafe for Colors
impl Send for Colors
impl Sync for Colors
impl Unpin for Colors
impl UnwindSafe for Colors
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more