Struct cint::PremultipliedAlpha [−][src]
pub struct PremultipliedAlpha<ColorTy: ColorStruct> { pub color: ColorTy, pub alpha: ColorTy::ComponentTy, }
Expand description
A premultiplied color with an alpha component.
The color components have been premultiplied by the alpha component.
Fields
color: ColorTy
The contained color, which has been premultiplied with alpha
alpha: ColorTy::ComponentTy
The alpha component.
Trait Implementations
impl<ColorTy: Clone + ColorStruct> Clone for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Clone,
impl<ColorTy: Clone + ColorStruct> Clone for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Clone,
impl<ColorTy: Debug + ColorStruct> Debug for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Debug,
impl<ColorTy: Debug + ColorStruct> Debug for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Debug,
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
fn from(
[a, b, c, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
fn from(
[a, b, c, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
fn from(
[a, b, c, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
fn from(
[a, b, c, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
fn from(
[a, b, c, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
fn from(
[a, b, c, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor<ComponentTy>>
impl<ComponentTy: Clone + Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor<ComponentTy>>
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
) -> EncodedBt2100HLG<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
) -> EncodedBt2100HLG<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<GenericColor<ComponentTy>>> for GenericColor<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<GenericColor<ComponentTy>>> for GenericColor<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<GenericColor<ComponentTy>>
) -> GenericColor<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<GenericColor<ComponentTy>>
) -> GenericColor<ComponentTy>
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<ColorTy: Hash + ColorStruct> Hash for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Hash,
impl<ColorTy: Hash + ColorStruct> Hash for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Hash,
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor<ComponentTy>>
impl<ComponentTy: Clone + Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor<ComponentTy>>
impl<ColorTy: Ord + ColorStruct> Ord for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Ord,
impl<ColorTy: Ord + ColorStruct> Ord for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Ord,
impl<ColorTy: PartialEq + ColorStruct> PartialEq<PremultipliedAlpha<ColorTy>> for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: PartialEq,
impl<ColorTy: PartialEq + ColorStruct> PartialEq<PremultipliedAlpha<ColorTy>> for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: PartialEq,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<ColorTy: PartialOrd + ColorStruct> PartialOrd<PremultipliedAlpha<ColorTy>> for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: PartialOrd,
impl<ColorTy: PartialOrd + ColorStruct> PartialOrd<PremultipliedAlpha<ColorTy>> for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: PartialOrd,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<ColorTy: Copy + ColorStruct> Copy for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Copy,
impl<ColorTy: Eq + ColorStruct> Eq for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Eq,
Auto Trait Implementations
impl<ColorTy> Send for PremultipliedAlpha<ColorTy> where
ColorTy: Send,
<ColorTy as ColorStruct>::ComponentTy: Send,
impl<ColorTy> Sync for PremultipliedAlpha<ColorTy> where
ColorTy: Sync,
<ColorTy as ColorStruct>::ComponentTy: Sync,
impl<ColorTy> Unpin for PremultipliedAlpha<ColorTy> where
ColorTy: Unpin,
<ColorTy as ColorStruct>::ComponentTy: Unpin,