Struct components::RgbColor[]

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

Fields

red: u8green: u8blue: u8

Implementations

impl RgbColor

pub fn new(red: u8, green: u8, blue: u8) -> RgbColor

Trait Implementations

impl Clone for RgbColor

impl ColorSpace for RgbColor

impl ColorTransition for RgbColor

impl Copy for RgbColor

impl Debug for RgbColor

impl Display for RgbColor

impl Eq for RgbColor

impl From<CmyColor> for RgbColor

impl From<CmykColor> for RgbColor

impl From<Color<f64>> for RgbColor

impl From<HslColor> for RgbColor

impl From<HsvColor> for RgbColor

impl From<RgbColor> for HsvColor

impl From<RgbColor> for HslColor

impl From<RgbColor> for Color<f64>

impl From<RgbColor> for CmyColor

impl From<RgbColor> for RgbaColor

impl From<RgbColor> for CmykColor

impl From<RgbaColor> for RgbColor

impl GetAlpha<RgbColor> for RgbaColor

impl HasAlpha<RgbColor> for RgbaColor

impl Hash for RgbColor

impl NonRadialSpace for RgbColor

impl NonSaturationSpace for RgbColor

impl PartialEq<RgbColor> for RgbColor

impl SetAlpha<RgbColor> for RgbaColor

impl StructuralEq for RgbColor

impl StructuralPartialEq for RgbColor

Auto Trait Implementations

Blanket Implementations

impl<C> Adjust for C where
    C: Lighten + AdjustHue + Saturate + Grayscale

impl<C> AdjustHue for C where
    C: Clone + GetHue + SetHue

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<Fr, To> FromColor<Fr> for To where
    Fr: Into<Color<f64>>,
    To: From<Color<f64>>, 

impl<C> GetHue for C where
    C: NonRadialSpace

impl<C> GetRadialSaturation for C where
    C: Clone + Copy + FromColor<HslColor> + IntoColor<HslColor> + FromColor<HsvColor> + IntoColor<HsvColor>, 

impl<C> Grayscale for C where
    C: Saturate

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

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 

impl<C> Invert for C where
    C: ColorTransition

impl<C> Lighten for C where
    C: FromColor<HslColor> + IntoColor<HslColor>, 

impl<C> Saturate for C where
    C: Clone + GetRadialSaturation + SetRadialSaturation

impl<C> SetHue for C where
    C: NonRadialSpace

impl<C> SetRadialSaturation for C where
    C: Clone + Copy + FromColor<HslColor> + IntoColor<HslColor> + FromColor<HsvColor> + IntoColor<HsvColor>, 

impl<C> ToHexString for C where
    C: Into<RgbColor> + Clone

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>,