pub struct RgbColor(pub u8, pub u8, pub u8);
Expand description
24-bit ANSI RGB color codes
Tuple Fields§
§0: u8
§1: u8
§2: u8
Implementations§
Trait Implementations§
source§impl BitOr<Effects> for RgbColor
impl BitOr<Effects> for RgbColor
Define style with specified foreground color and effects
Examples
let fg = anstyle::RgbColor(0, 0, 0);
let style = fg | anstyle::Effects::BOLD | anstyle::Effects::UNDERLINE;
source§impl From<RgbColor> for Style
impl From<RgbColor> for Style
Define style with specified foreground color
Examples
let style: anstyle::Style = anstyle::RgbColor(0, 0, 0).into();
source§impl Ord for RgbColor
impl Ord for RgbColor
source§impl PartialEq<RgbColor> for RgbColor
impl PartialEq<RgbColor> for RgbColor
source§impl PartialOrd<RgbColor> for RgbColor
impl PartialOrd<RgbColor> for RgbColor
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more