pub struct Color {
pub r: u8,
pub g: u8,
pub b: u8,
}Available on crate feature
decode only.Expand description
A CEA-708 colour: 2 bits per RGB component (R, G, B each 0–3), 64 colours total (§8.8, Tables 30/31).
Fields§
§r: u8Red component, 0–3.
g: u8Green component, 0–3.
b: u8Blue component, 0–3.
Implementations§
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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