Struct color::Rgb [−][src]
Fields
r: T
g: T
b: T
Implementations
impl<T: Channel, S: TransferFunction> Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> Rgb<T, S>
[src]pub fn from_hex(hex: u32) -> Rgb<T, S>
[src]
pub fn rg(&self) -> Rg<T, S>
[src]
pub fn rb(&self) -> Rg<T, S>
[src]
pub fn gr(&self) -> Rg<T, S>
[src]
pub fn gb(&self) -> Rg<T, S>
[src]
pub fn br(&self) -> Rg<T, S>
[src]
pub fn bg(&self) -> Rg<T, S>
[src]
pub fn rgb(&self) -> Rgb<T, S>
[src]
pub fn rbg(&self) -> Rgb<T, S>
[src]
pub fn bgr(&self) -> Rgb<T, S>
[src]
pub fn brg(&self) -> Rgb<T, S>
[src]
pub fn grb(&self) -> Rgb<T, S>
[src]
pub fn gbr(&self) -> Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> Rgb<T, S>
[src]pub fn to_standard<S2: TransferFunction>(&self) -> Rgb<T, S2>
[src]
pub fn to_linear(&self) -> Rgb<T, LinearRgb>
[src]
Trait Implementations
impl<T: Channel, S> Color<T> for Rgb<T, S>
[src]
impl<T: Channel, S> Color<T> for Rgb<T, S>
[src]fn clamp_s(self, lo: T, hi: T) -> Rgb<T, S>
[src]
Clamps the components of the color to the range (lo,hi)
.
fn clamp_c(self, lo: Rgb<T, S>, hi: Rgb<T, S>) -> Rgb<T, S>
[src]
Clamps the components of the color component-wise between lo
and hi
.
fn inverse(self) -> Rgb<T, S>
[src]
Inverts the color.
fn mix(self, other: Self, value: T) -> Self
[src]
impl<'de, T, S> Deserialize<'de> for Rgb<T, S> where
T: Deserialize<'de>,
[src]
impl<'de, T, S> Deserialize<'de> for Rgb<T, S> where
T: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: FloatChannel, S> FloatColor<T> for Rgb<T, S>
[src]
impl<T: FloatChannel, S> FloatColor<T> for Rgb<T, S>
[src]impl<T: Channel + Saturating, S> Saturating for Rgb<T, S>
[src]
impl<T: Channel + Saturating, S> Saturating for Rgb<T, S>
[src]fn saturating_add(self, v: Rgb<T, S>) -> Rgb<T, S>
[src]
fn saturating_sub(self, v: Rgb<T, S>) -> Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> ToHsv for Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> ToHsv for Rgb<T, S>
[src]impl<T: Channel, S: TransferFunction> ToLuma for Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> ToLuma for Rgb<T, S>
[src]impl<T: Channel, S: TransferFunction> ToRgb for Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> ToRgb for Rgb<T, S>
[src]impl<T: Channel, S: TransferFunction> ToRgba for Rgb<T, S>
[src]
impl<T: Channel, S: TransferFunction> ToRgba for Rgb<T, S>
[src]impl<T: Channel, S: MatrixColorSpace + TransferFunction> ToXyz for Rgb<T, S>
[src]
impl<T: Channel, S: MatrixColorSpace + TransferFunction> ToXyz for Rgb<T, S>
[src]impl<T: Copy, S> Copy for Rgb<T, S>
[src]
impl<N: Clone + PartialEq + Eq + Num + NumCast, S> Eq for Rgb<N, S>
[src]
Auto Trait Implementations
impl<T, S> RefUnwindSafe for Rgb<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for Rgb<T, S> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<T, S> Sync for Rgb<T, S> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<T, S> Unpin for Rgb<T, S> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for Rgb<T, S> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,