pub struct RgbColor {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
An opaque sRGB color.
Fields§
§r: u8Red component.
g: u8Green component.
b: u8Blue component.
Implementations§
Trait Implementations§
Source§impl ColorSpace for RgbColor
impl ColorSpace for RgbColor
impl Copy for RgbColor
impl Eq for RgbColor
impl StructuralPartialEq for RgbColor
Auto Trait Implementations§
impl Freeze for RgbColor
impl RefUnwindSafe for RgbColor
impl Send for RgbColor
impl Sync for RgbColor
impl Unpin for RgbColor
impl UnsafeUnpin for RgbColor
impl UnwindSafe for RgbColor
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