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]
fn blue(self) -> T
fn green(self) -> T
fn luminance(self) -> f64 where
f64: ClampFrom<T>,
f64: ClampFrom<T>,
fn red(self) -> T
fn with_alpha(self, alpha: T) -> Rgba<T>
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]
fn from_color(other: Lum<F>) -> Rgb<T>
impl<F, T: Clone + Clamp + ClampFrom<F>> FromColor<Option<Lum<F>>> for Rgb<T>
[src]
fn from_color(other: Option<Lum<F>>) -> Rgb<T>
impl<F, T: Clone + ClampFrom<F>> FromColor<LumAlpha<F>> for Rgb<T>
[src]
fn from_color(other: LumAlpha<F>) -> Rgb<T>
impl<F, T: ClampFrom<F>> FromColor<Rgb<F>> for Rgb<T>
[src]
fn from_color(other: Rgb<F>) -> Rgb<T>
impl<F, T: Clamp + ClampFrom<F>> FromColor<Option<Rgb<F>>> for Rgb<T>
[src]
fn from_color(other: Option<Rgb<F>>) -> Rgb<T>
impl<F, T: ClampFrom<F>> FromColor<Rgba<F>> for Rgb<T>
[src]
fn from_color(other: Rgba<F>) -> Rgb<T>
impl<T: Clamp + Sub<Output = T>> Invert for Rgb<T>
[src]
impl<T: Clone> Clone for Rgb<T>
[src]
fn clone(&self) -> Rgb<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for Rgb<T>
[src]
impl<T: Debug> Debug for Rgb<T>
[src]
impl<T: Default> Default for Rgb<T>
[src]
impl<T: Eq> Eq for Rgb<T>
[src]
impl<T: Hash> Hash for Rgb<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: PartialEq> PartialEq for Rgb<T>
[src]
fn eq(&self, __arg_0: &Rgb<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rgb<T>) -> bool
This method tests for !=
.