Struct aurum_color::Rgb [] [src]

pub struct Rgb<T>(pub T, pub T, pub T);

Red-green-blue color structure.

Methods

impl<T> Rgb<T>
[src]

Trait Implementations

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

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

impl<F, T: Clone + ClampFrom<F>> FromColor<Lum<F>> for Rgb<T>
[src]

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

impl<F, T: Clone + ClampFrom<F>> FromColor<LumAlpha<F>> for Rgb<T>
[src]

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

impl<F, T: Clamp + ClampFrom<F>> FromColor<Option<Rgb<F>>> for Rgb<T>
[src]

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

impl<T: Clamp + Sub<Output = T>> Invert for Rgb<T>
[src]

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<F, T: ClampFrom<F>> ClampFrom<Rgb<F>> for Rgb<T>
[src]

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

Performs the conversion.

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