[][src]Struct rpi_led_matrix::LedColor

pub struct LedColor {
    pub red: u8,
    pub green: u8,
    pub blue: u8,
}

The Rust handle representing a color you'd like to display.

Fields

red: u8

the red channel value

green: u8

the green channel value

blue: u8

the blue channel value

Trait Implementations

impl Clone for LedColor[src]

impl Copy for LedColor[src]

impl Debug for LedColor[src]

impl From<Bgr555> for LedColor[src]

impl From<Bgr565> for LedColor[src]

impl From<Bgr888> for LedColor[src]

impl From<BinaryColor> for LedColor[src]

impl From<Gray2> for LedColor[src]

impl From<Gray4> for LedColor[src]

impl From<Gray8> for LedColor[src]

impl From<Rgb555> for LedColor[src]

impl From<Rgb565> for LedColor[src]

impl From<Rgb888> for LedColor[src]

impl PartialEq<LedColor> for LedColor[src]

impl PixelColor for LedColor[src]

type Raw = RawU24

Raw data type. Read more

impl StructuralPartialEq for LedColor[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.