Struct dcolor::Lum [] [src]

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

Luminance color type.

Fields

Methods

impl<T> Lum<T>
[src]

Trait Implementations

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

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

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

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

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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Formats the value using the given formatter.

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

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

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

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

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

impl<T> Mul<T> for Lum<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 Lum<T> where
    T: Copy + Div<Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the / operator

The method for the / operator