Struct dcolor::Rgba [] [src]

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

Red-green-blue-alpha color type.

Fields

Methods

impl<T> Rgba<T>
[src]

Trait Implementations

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

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

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

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

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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Formats the value using the given formatter.

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

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

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

impl<T: Hash> Hash for Rgba<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 Rgba<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 Rgba<T> where
    T: Clamp
[src]

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

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