Struct cint::ColorAlpha[][src]

pub struct ColorAlpha<ComponentTy, ColorTy> {
    pub color: ColorTy,
    pub alpha: ComponentTy,
}
Expand description

A color with an alpha component.

The color components and alpha component are completely separate.

Fields

color: ColorTy
Expand description

The contained color, which is completely separate from the alpha value.

alpha: ComponentTy
Expand description

The alpha component.

Trait Implementations

impl<ComponentTy: Clone, ColorTy: Clone> Clone for ColorAlpha<ComponentTy, ColorTy>[src]

fn clone(&self) -> ColorAlpha<ComponentTy, ColorTy>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<ComponentTy: Debug, ColorTy: Debug> Debug for ColorAlpha<ComponentTy, ColorTy>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedSrgb<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, EncodedSrgb<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, LinearSrgb<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, LinearSrgb<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, DciP3<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, DciP3<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, DciXYZPrime<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, DciXYZPrime<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Bt2020<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, Bt2020<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Bt2100<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, Bt2100<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedBt2100PQ<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, EncodedBt2100PQ<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedBt2100HLG<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, EncodedBt2100HLG<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, ICtCpPQ<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, ICtCpPQ<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, ICtCpHLG<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, ICtCpHLG<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, CieXYZ<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, CieXYZ<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, CieLab<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, CieLab<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, CieLCh<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, CieLCh<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Oklab<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, Oklab<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Oklch<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, Oklch<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Rec709<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, Rec709<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, GenericColor<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, GenericColor<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, AcesCg<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, AcesCg<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Aces2065<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, Aces2065<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, AcesCc<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, AcesCc<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, AcesCct<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, AcesCct<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<[ComponentTy; 4]> for ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>[src]

fn from(
    [a, b, c, alpha]: [ComponentTy; 4]
) -> ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, Aces2065<ComponentTy>>> for Aces2065<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, Aces2065<ComponentTy>>
) -> Aces2065<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, AcesCc<ComponentTy>>> for AcesCc<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, AcesCc<ComponentTy>>
) -> AcesCc<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, AcesCct<ComponentTy>>> for AcesCct<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, AcesCct<ComponentTy>>
) -> AcesCct<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, AcesCg<ComponentTy>>> for AcesCg<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, AcesCg<ComponentTy>>
) -> AcesCg<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, Bt2020<ComponentTy>>> for Bt2020<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, Bt2020<ComponentTy>>
) -> Bt2020<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, Bt2100<ComponentTy>>> for Bt2100<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, Bt2100<ComponentTy>>
) -> Bt2100<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, CieLCh<ComponentTy>>> for CieLCh<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, CieLCh<ComponentTy>>
) -> CieLCh<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, CieLab<ComponentTy>>> for CieLab<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, CieLab<ComponentTy>>
) -> CieLab<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, CieXYZ<ComponentTy>>
) -> CieXYZ<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, DciP3<ComponentTy>>> for DciP3<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, DciP3<ComponentTy>>
) -> DciP3<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, DciXYZPrime<ComponentTy>>
) -> DciXYZPrime<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>
) -> DisplayP3<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, EncodedBt2100HLG<ComponentTy>>
) -> EncodedBt2100HLG<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, EncodedSrgb<ComponentTy>>
) -> EncodedSrgb<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, GenericColor<ComponentTy>>> for GenericColor<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, GenericColor<ComponentTy>>
) -> GenericColor<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, ICtCpHLG<ComponentTy>>
) -> ICtCpHLG<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, ICtCpPQ<ComponentTy>>
) -> ICtCpPQ<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, LinearSrgb<ComponentTy>>
) -> LinearSrgb<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, Oklab<ComponentTy>>> for Oklab<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, Oklab<ComponentTy>>
) -> Oklab<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, Oklch<ComponentTy>>> for Oklch<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, Oklch<ComponentTy>>
) -> Oklch<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy> From<ColorAlpha<ComponentTy, Rec709<ComponentTy>>> for Rec709<ComponentTy>[src]

fn from(
    col_alpha: ColorAlpha<ComponentTy, Rec709<ComponentTy>>
) -> Rec709<ComponentTy>
[src]

Performs the conversion.

impl<ComponentTy: Hash, ColorTy: Hash> Hash for ColorAlpha<ComponentTy, ColorTy>[src]

fn hash<__H: Hasher>(&self, state: &mut __H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedSrgb<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, LinearSrgb<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, DciP3<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, DciXYZPrime<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Bt2020<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Bt2100<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedBt2100PQ<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedBt2100HLG<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, ICtCpPQ<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, ICtCpHLG<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, CieXYZ<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, CieLab<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, CieLCh<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Oklab<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Oklch<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Rec709<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, GenericColor<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, AcesCg<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, Aces2065<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, AcesCc<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, AcesCct<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy> Into<[ComponentTy; 4]> for ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>[src]

fn into(self) -> [ComponentTy; 4][src]

Performs the conversion.

impl<ComponentTy: Ord, ColorTy: Ord> Ord for ColorAlpha<ComponentTy, ColorTy>[src]

fn cmp(&self, other: &ColorAlpha<ComponentTy, ColorTy>) -> Ordering[src]

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl<ComponentTy: PartialEq, ColorTy: PartialEq> PartialEq<ColorAlpha<ComponentTy, ColorTy>> for ColorAlpha<ComponentTy, ColorTy>[src]

fn eq(&self, other: &ColorAlpha<ComponentTy, ColorTy>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &ColorAlpha<ComponentTy, ColorTy>) -> bool[src]

This method tests for !=.

impl<ComponentTy: PartialOrd, ColorTy: PartialOrd> PartialOrd<ColorAlpha<ComponentTy, ColorTy>> for ColorAlpha<ComponentTy, ColorTy>[src]

fn partial_cmp(
    &self,
    other: &ColorAlpha<ComponentTy, ColorTy>
) -> Option<Ordering>
[src]

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<ComponentTy: Zeroable, ColorTy: Zeroable> Zeroable for ColorAlpha<ComponentTy, ColorTy>[src]

fn zeroed() -> Self[src]

impl<ComponentTy: Copy, ColorTy: Copy> Copy for ColorAlpha<ComponentTy, ColorTy>[src]

impl<ComponentTy: Eq, ColorTy: Eq> Eq for ColorAlpha<ComponentTy, ColorTy>[src]

impl<ComponentTy: Pod, ColorTy: Pod> Pod for ColorAlpha<ComponentTy, ColorTy>[src]

impl<ComponentTy, ColorTy> StructuralEq for ColorAlpha<ComponentTy, ColorTy>[src]

impl<ComponentTy, ColorTy> StructuralPartialEq for ColorAlpha<ComponentTy, ColorTy>[src]

Auto Trait Implementations

impl<ComponentTy, ColorTy> Send for ColorAlpha<ComponentTy, ColorTy> where
    ColorTy: Send,
    ComponentTy: Send

impl<ComponentTy, ColorTy> Sync for ColorAlpha<ComponentTy, ColorTy> where
    ColorTy: Sync,
    ComponentTy: Sync

impl<ComponentTy, ColorTy> Unpin for ColorAlpha<ComponentTy, ColorTy> where
    ColorTy: Unpin,
    ComponentTy: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.