pub struct Colour {
pub red: u8,
pub green: u8,
pub blue: u8,
}Expand description
Per-point colour, in unsigned 8-bit channels.
Deliberately not a floating-point triple: capture hardware reports 8- or 16-bit colour, and widening it here would imply a precision the sensor never had.
Fields§
§red: u8Red channel.
green: u8Green channel.
blue: u8Blue channel.
Implementations§
Trait Implementations§
impl Copy for Colour
impl Eq for Colour
impl StructuralPartialEq for Colour
Auto Trait Implementations§
impl Freeze for Colour
impl RefUnwindSafe for Colour
impl Send for Colour
impl Sync for Colour
impl Unpin for Colour
impl UnwindSafe for Colour
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