[][src]Struct homie_controller::ColorHSV

pub struct ColorHSV {
    pub h: u16,
    pub s: u8,
    pub v: u8,
}

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

impl ColorHSV[src]

pub fn new(h: u16, s: u8, v: u8) -> Self[src]

Construct a new HSV colour, or panic if the values given are out of range.

Trait Implementations

impl Clone for ColorHSV[src]

impl Debug for ColorHSV[src]

impl Display for ColorHSV[src]

impl Eq for ColorHSV[src]

impl FromStr for ColorHSV[src]

type Err = ParseColorError

The associated error which can be returned from parsing.

impl PartialEq<ColorHSV> for ColorHSV[src]

impl StructuralEq for ColorHSV[src]

impl StructuralPartialEq for ColorHSV[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,