Struct homie_controller::ColorRgb
source · pub struct ColorRgb {
pub r: u8,
pub g: u8,
pub b: u8,
}
Expand description
A colour in red-green-blue format.
Fields§
§r: u8
The red channel of the colour, between 0 and 255.
g: u8
The green channel of the colour, between 0 and 255.
b: u8
The blue channel of the colour, between 0 and 255.
Implementations§
Trait Implementations§
source§impl PartialEq<ColorRgb> for ColorRgb
impl PartialEq<ColorRgb> for ColorRgb
impl Eq for ColorRgb
impl StructuralEq for ColorRgb
impl StructuralPartialEq for ColorRgb
Auto Trait Implementations§
impl RefUnwindSafe for ColorRgb
impl Send for ColorRgb
impl Sync for ColorRgb
impl Unpin for ColorRgb
impl UnwindSafe for ColorRgb
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