pub struct Rgb(pub u8, pub u8, pub u8);Expand description
A 24-bit RGB colour. Deliberately not a re-export of
ratatui::style::Color::Rgb so this crate stays free of any
TUI library dependency.
Apps convert to their own colour type with a one-liner:
ratatui::style::Color::Rgb(c.0, c.1, c.2).
Tuple Fields§
§0: u8Red channel, 0..=255.
1: u8Green channel, 0..=255.
2: u8Blue channel, 0..=255.
Implementations§
Trait Implementations§
impl Copy for Rgb
impl Eq for Rgb
impl StructuralPartialEq for Rgb
Auto Trait Implementations§
impl Freeze for Rgb
impl RefUnwindSafe for Rgb
impl Send for Rgb
impl Sync for Rgb
impl Unpin for Rgb
impl UnsafeUnpin for Rgb
impl UnwindSafe for Rgb
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