Struct clap_builder::builder::styling::RgbColor
source · 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§
source§impl RgbColor
impl RgbColor
sourcepub fn on(self, background: impl Into<Color>) -> Style
pub fn on(self, background: impl Into<Color>) -> Style
Create a Style
with this as the foreground
sourcepub const fn on_default(self) -> Style
pub const fn on_default(self) -> Style
Create a Style
with this as the foreground
pub const fn r(self) -> u8
pub const fn g(self) -> u8
pub const fn b(self) -> u8
Trait Implementations§
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