Struct dcolor::Luma [] [src]

#[repr(C)]
pub struct Luma<T> { pub l: T, pub a: T, }

Luminance-alpha color type.

Fields

Methods

impl<T> Luma<T>
[src]

Trait Implementations

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

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

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

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

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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Formats the value using the given formatter.

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

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

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

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

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