#[non_exhaustive]pub enum TermColor {
Named(NamedColor),
Ansi256(u8),
Rgb(u8, u8, u8),
}Expand description
Terminal color specification for plot labels, annotations, and series.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Named(NamedColor)
One of the standard 16 named ANSI colors.
Ansi256(u8)
An extended 256-color palette index.
Rgb(u8, u8, u8)
A 24-bit true-color RGB value.
Trait Implementations§
impl Copy for TermColor
impl Eq for TermColor
impl StructuralPartialEq for TermColor
Auto Trait Implementations§
impl Freeze for TermColor
impl RefUnwindSafe for TermColor
impl Send for TermColor
impl Sync for TermColor
impl Unpin for TermColor
impl UnsafeUnpin for TermColor
impl UnwindSafe for TermColor
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