Struct cint::PremultipliedAlpha
source · [−]pub struct PremultipliedAlpha<ColorTy: ColorType> {
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
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
sourceimpl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
sourceimpl<ColorTy: Clone + ColorType> Clone for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Clone,
impl<ColorTy: Clone + ColorType> Clone for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Clone,
sourcefn clone(&self) -> PremultipliedAlpha<ColorTy>
fn clone(&self) -> PremultipliedAlpha<ColorTy>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<BaseColorTy: ColorType> ColorType for PremultipliedAlpha<BaseColorTy>
impl<BaseColorTy: ColorType> ColorType for PremultipliedAlpha<BaseColorTy>
type ComponentTy = <BaseColorTy as ColorType>::ComponentTy
const SPACE: Spaces = BaseColorTy::SPACE
const NUM_COMPONENTS: usize = BaseColorTy::NUM_COMPONENTS + 1
sourceimpl<ColorTy: Debug + ColorType> Debug for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Debug,
impl<ColorTy: Debug + ColorType> Debug for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Debug,
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
sourcefn from(
[x, alpha]: [ComponentTy; 2]
) -> PremultipliedAlpha<GenericColor1<ComponentTy>>
fn from(
[x, alpha]: [ComponentTy; 2]
) -> PremultipliedAlpha<GenericColor1<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
sourcefn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedSrgb<ComponentTy>>
fn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedSrgb<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
sourcefn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<LinearSrgb<ComponentTy>>
fn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<LinearSrgb<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
sourcefn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
fn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
sourcefn from(
[x, y, z, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<DciXYZPrime<ComponentTy>>
fn from(
[x, y, z, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<DciXYZPrime<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
sourcefn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2020<ComponentTy>>
fn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2020<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
sourcefn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
fn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
sourcefn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
fn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
sourcefn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedRec709<ComponentTy>>
fn from(
[r, g, b, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<EncodedRec709<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
sourcefn from(
[y, cb, cr, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
fn from(
[y, cb, cr, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
sourcefn from(
[y, pb, pr, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<YPrimePbPr<ComponentTy>>
fn from(
[y, pb, pr, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<YPrimePbPr<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
sourcefn from(
[x, y, z, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<GenericColor3<ComponentTy>>
fn from(
[x, y, z, alpha]: [ComponentTy; 4]
) -> PremultipliedAlpha<GenericColor3<ComponentTy>>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Aces2065<ComponentTy>>> for Aces2065<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Aces2065<ComponentTy>>> for Aces2065<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<Aces2065<ComponentTy>>
) -> Aces2065<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<Aces2065<ComponentTy>>
) -> Aces2065<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCc<ComponentTy>>> for AcesCc<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCc<ComponentTy>>> for AcesCc<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<AcesCc<ComponentTy>>
) -> AcesCc<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<AcesCc<ComponentTy>>
) -> AcesCc<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCct<ComponentTy>>> for AcesCct<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCct<ComponentTy>>> for AcesCct<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<AcesCct<ComponentTy>>
) -> AcesCct<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<AcesCct<ComponentTy>>
) -> AcesCct<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCg<ComponentTy>>> for AcesCg<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCg<ComponentTy>>> for AcesCg<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<AcesCg<ComponentTy>>
) -> AcesCg<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<AcesCg<ComponentTy>>
) -> AcesCg<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2020<ComponentTy>>> for Bt2020<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2020<ComponentTy>>> for Bt2020<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<Bt2020<ComponentTy>>
) -> Bt2020<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<Bt2020<ComponentTy>>
) -> Bt2020<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2100<ComponentTy>>> for Bt2100<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2100<ComponentTy>>> for Bt2100<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<Bt2100<ComponentTy>>
) -> Bt2100<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<Bt2100<ComponentTy>>
) -> Bt2100<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<CieLCh<ComponentTy>>> for CieLCh<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLCh<ComponentTy>>> for CieLCh<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<CieLCh<ComponentTy>>
) -> CieLCh<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<CieLCh<ComponentTy>>
) -> CieLCh<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<CieLab<ComponentTy>>> for CieLab<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLab<ComponentTy>>> for CieLab<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<CieLab<ComponentTy>>
) -> CieLab<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<CieLab<ComponentTy>>
) -> CieLab<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<CieXYZ<ComponentTy>>
) -> CieXYZ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<CieXYZ<ComponentTy>>
) -> CieXYZ<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<DciP3<ComponentTy>>> for DciP3<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<DciP3<ComponentTy>>> for DciP3<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<DciP3<ComponentTy>>) -> DciP3<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<DciP3<ComponentTy>>) -> DciP3<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<DciXYZPrime<ComponentTy>>
) -> DciXYZPrime<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<DciXYZPrime<ComponentTy>>
) -> DciXYZPrime<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<DisplayP3<ComponentTy>>
) -> DisplayP3<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<DisplayP3<ComponentTy>>
) -> DisplayP3<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
) -> EncodedBt2100HLG<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
) -> EncodedBt2100HLG<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<EncodedSrgb<ComponentTy>>
) -> EncodedSrgb<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedSrgb<ComponentTy>>
) -> EncodedSrgb<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<GenericColor1<ComponentTy>>
) -> GenericColor1<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<GenericColor1<ComponentTy>>
) -> GenericColor1<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<GenericColor3<ComponentTy>>
) -> GenericColor3<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<GenericColor3<ComponentTy>>
) -> GenericColor3<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Hsl<ComponentTy>>> for Hsl<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Hsl<ComponentTy>>> for Hsl<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<Hsl<ComponentTy>>) -> Hsl<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<Hsl<ComponentTy>>) -> Hsl<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Hsv<ComponentTy>>> for Hsv<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Hsv<ComponentTy>>> for Hsv<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<Hsv<ComponentTy>>) -> Hsv<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<Hsv<ComponentTy>>) -> Hsv<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<ICtCpHLG<ComponentTy>>
) -> ICtCpHLG<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<ICtCpHLG<ComponentTy>>
) -> ICtCpHLG<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<ICtCpPQ<ComponentTy>>
) -> ICtCpPQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<ICtCpPQ<ComponentTy>>
) -> ICtCpPQ<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<LinearSrgb<ComponentTy>>
) -> LinearSrgb<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<LinearSrgb<ComponentTy>>
) -> LinearSrgb<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Luma<ComponentTy>>> for Luma<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Luma<ComponentTy>>> for Luma<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<Luma<ComponentTy>>) -> Luma<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<Luma<ComponentTy>>) -> Luma<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Luminance<ComponentTy>>> for Luminance<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Luminance<ComponentTy>>> for Luminance<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<Luminance<ComponentTy>>
) -> Luminance<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<Luminance<ComponentTy>>
) -> Luminance<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Oklab<ComponentTy>>> for Oklab<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Oklab<ComponentTy>>> for Oklab<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<Oklab<ComponentTy>>) -> Oklab<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<Oklab<ComponentTy>>) -> Oklab<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Oklch<ComponentTy>>> for Oklch<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Oklch<ComponentTy>>> for Oklch<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<Oklch<ComponentTy>>) -> Oklch<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<Oklch<ComponentTy>>) -> Oklch<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Rec709<ComponentTy>>> for Rec709<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Rec709<ComponentTy>>> for Rec709<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<Rec709<ComponentTy>>
) -> Rec709<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<Rec709<ComponentTy>>
) -> Rec709<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<YCbCr<ComponentTy>>> for YCbCr<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YCbCr<ComponentTy>>> for YCbCr<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<YCbCr<ComponentTy>>) -> YCbCr<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<YCbCr<ComponentTy>>) -> YCbCr<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<YCxCz<ComponentTy>>> for YCxCz<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YCxCz<ComponentTy>>> for YCxCz<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<YCxCz<ComponentTy>>) -> YCxCz<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<YCxCz<ComponentTy>>) -> YCxCz<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<YPbPr<ComponentTy>>> for YPbPr<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YPbPr<ComponentTy>>> for YPbPr<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<YPbPr<ComponentTy>>) -> YPbPr<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<YPbPr<ComponentTy>>) -> YPbPr<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimeCbCr<ComponentTy>>> for YPrimeCbCr<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimeCbCr<ComponentTy>>> for YPrimeCbCr<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
) -> YPrimeCbCr<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
) -> YPrimeCbCr<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<YPrimePbPr<ComponentTy>>
) -> YPrimePbPr<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<YPrimePbPr<ComponentTy>>
) -> YPrimePbPr<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<Yuv<ComponentTy>>> for Yuv<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Yuv<ComponentTy>>> for Yuv<ComponentTy>
sourcefn from(col_alpha: PremultipliedAlpha<Yuv<ComponentTy>>) -> Yuv<ComponentTy>
fn from(col_alpha: PremultipliedAlpha<Yuv<ComponentTy>>) -> Yuv<ComponentTy>
Converts to this type from the input type.
sourceimpl<ColorTy: Hash + ColorType> Hash for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Hash,
impl<ColorTy: Hash + ColorType> Hash for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Hash,
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
sourceimpl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
sourceimpl<ColorTy: PartialEq + ColorType> PartialEq<PremultipliedAlpha<ColorTy>> for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: PartialEq,
impl<ColorTy: PartialEq + ColorType> PartialEq<PremultipliedAlpha<ColorTy>> for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: PartialEq,
sourcefn eq(&self, other: &PremultipliedAlpha<ColorTy>) -> bool
fn eq(&self, other: &PremultipliedAlpha<ColorTy>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PremultipliedAlpha<ColorTy>) -> bool
fn ne(&self, other: &PremultipliedAlpha<ColorTy>) -> bool
This method tests for !=
.
sourceimpl<ColorTy: ColorType + Zeroable> Zeroable for PremultipliedAlpha<ColorTy>
impl<ColorTy: ColorType + Zeroable> Zeroable for PremultipliedAlpha<ColorTy>
impl<ColorTy: Copy + ColorType> Copy for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Copy,
impl<ColorTy: Eq + ColorType> Eq for PremultipliedAlpha<ColorTy> where
ColorTy::ComponentTy: Eq,
impl<ColorTy: ColorType + Pod> Pod for PremultipliedAlpha<ColorTy>
impl<ColorTy: ColorType> StructuralEq for PremultipliedAlpha<ColorTy>
impl<ColorTy: ColorType> StructuralPartialEq for PremultipliedAlpha<ColorTy>
Auto Trait Implementations
impl<ColorTy> RefUnwindSafe for PremultipliedAlpha<ColorTy> where
ColorTy: RefUnwindSafe,
<ColorTy as ColorType>::ComponentTy: RefUnwindSafe,
impl<ColorTy> Send for PremultipliedAlpha<ColorTy> where
ColorTy: Send,
<ColorTy as ColorType>::ComponentTy: Send,
impl<ColorTy> Sync for PremultipliedAlpha<ColorTy> where
ColorTy: Sync,
<ColorTy as ColorType>::ComponentTy: Sync,
impl<ColorTy> Unpin for PremultipliedAlpha<ColorTy> where
ColorTy: Unpin,
<ColorTy as ColorType>::ComponentTy: Unpin,
impl<ColorTy> UnwindSafe for PremultipliedAlpha<ColorTy> where
ColorTy: UnwindSafe,
<ColorTy as ColorType>::ComponentTy: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
.