pub struct RGB {
pub r: u8,
pub g: u8,
pub b: u8,
}
Expand description
The RGB value of a color in the palette.
Fields§
§r: u8
Red component.
g: u8
Green component.
b: u8
Blue component.
Trait Implementations§
Source§impl Ord for RGB
impl Ord for RGB
Source§impl PartialOrd for RGB
impl PartialOrd for RGB
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 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