Struct primitives::RgbColor[][src]

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

Fields

red: u8green: u8blue: u8

Implementations

impl RgbColor[src]

pub fn new(red: u8, green: u8, blue: u8) -> Self[src]

Trait Implementations

impl Clone for RgbColor[src]

impl ColorSpace for RgbColor[src]

impl Copy for RgbColor[src]

impl Debug for RgbColor[src]

impl Display for RgbColor[src]

impl Eq for RgbColor[src]

impl From<CmyColor> for RgbColor[src]

impl From<CmykColor> for RgbColor[src]

impl From<Color> for RgbColor[src]

impl From<HslColor> for RgbColor[src]

impl From<HsvColor> for RgbColor[src]

impl From<RgbColor> for RgbaColor[src]

impl From<RgbColor> for HsvColor[src]

impl From<RgbColor> for HslColor[src]

impl From<RgbColor> for CmykColor[src]

impl From<RgbColor> for Color[src]

impl From<RgbaColor> for RgbColor[src]

impl Hash for RgbColor[src]

impl PartialEq<RgbColor> for RgbColor[src]

impl StructuralEq for RgbColor[src]

impl StructuralPartialEq for RgbColor[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> 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.