Struct homie_controller::ColorHsv
source · pub struct ColorHsv {
pub h: u16,
pub s: u8,
pub v: u8,
}
Expand description
A colour in hue-saturation-value format.
Fields§
§h: u16
The hue of the colour, between 0 and 360.
s: u8
The saturation of the colour, between 0 and 100.
v: u8
The value of the colour, between 0 and 100.
Implementations§
Trait Implementations§
source§impl PartialEq<ColorHsv> for ColorHsv
impl PartialEq<ColorHsv> for ColorHsv
impl Eq for ColorHsv
impl StructuralEq for ColorHsv
impl StructuralPartialEq for ColorHsv
Auto Trait Implementations§
impl RefUnwindSafe for ColorHsv
impl Send for ColorHsv
impl Sync for ColorHsv
impl Unpin for ColorHsv
impl UnwindSafe for ColorHsv
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