pub struct Rgb8 {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
8-bit-per-channel sRGB colour. Used in ColorMatrix palettes
and the renderer dispatch.
Fields§
§r: u8Red channel (0..=255).
g: u8Green channel (0..=255).
b: u8Blue channel (0..=255).
Implementations§
Trait Implementations§
impl Copy for Rgb8
impl Eq for Rgb8
impl StructuralPartialEq for Rgb8
Auto Trait Implementations§
impl Freeze for Rgb8
impl RefUnwindSafe for Rgb8
impl Send for Rgb8
impl Sync for Rgb8
impl Unpin for Rgb8
impl UnsafeUnpin for Rgb8
impl UnwindSafe for Rgb8
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