Struct dcolor::Rgb [] [src]

#[repr(C)]
pub struct Rgb<T> { pub r: T, pub g: T, pub b: T, }

Red-green-blue color type.

Fields

Methods

impl<T> Rgb<T>
[src]

Trait Implementations

impl<F, T> FromColor<Lum<F>> for Rgb<T> where
    F: ClampInto<T>,
    T: Clone
[src]

impl<F, T> FromColor<Option<Lum<F>>> for Rgb<T> where
    F: ClampInto<T>,
    T: Clone + Clamp
[src]

impl<F, T> FromColor<Luma<F>> for Rgb<T> where
    F: ClampInto<T>,
    T: Clone
[src]

impl<F, T> FromColor<Rgb<F>> for Rgb<T> where
    F: ClampInto<T>, 
[src]

impl<F, T> FromColor<Option<Rgb<F>>> for Rgb<T> where
    F: ClampInto<T>,
    T: Clamp
[src]

impl<F, T> FromColor<Rgba<F>> for Rgb<T> where
    F: ClampInto<T>, 
[src]

impl<T> Mul<T> for Rgb<T> where
    T: Copy + Mul<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T> Div<T> for Rgb<T> where
    T: Copy + Div<Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T> Add for Rgb<T> where
    T: Add<Output = T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T> Sub for Rgb<T> where
    T: Sub<Output = T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T> Mul for Rgb<T> where
    T: Mul<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T> Div for Rgb<T> where
    T: Div<Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T: Clone> Clone for Rgb<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Rgb<T>
[src]

impl<T: Debug> Debug for Rgb<T>
[src]

Formats the value using the given formatter.

impl<T: Default> Default for Rgb<T>
[src]

Returns the "default value" for a type. Read more

impl<T: Eq> Eq for Rgb<T>
[src]

impl<T: Hash> Hash for Rgb<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: PartialEq> PartialEq for Rgb<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Clamp for Rgb<T> where
    T: Clamp
[src]

impl<S, T> Lerp<T> for Rgb<S> where
    S: Lerp<T>,
    T: Copy
[src]

impl<T> Luminance for Rgb<T> where
    T: ClampInto<f64>, 
[src]