[go: up one dir, main page]

PremultipliedAlpha

Struct 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§

Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 2]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 2]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 2]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>

Source§

fn as_mut(&mut self) -> &mut [ComponentTy; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 2]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 2]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 2]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>

Source§

fn as_ref(&self) -> &[ComponentTy; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ColorTy: Clone + ColorType> Clone for PremultipliedAlpha<ColorTy>
where ColorTy::ComponentTy: Clone,

Source§

fn clone(&self) -> PremultipliedAlpha<ColorTy>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<BaseColorTy: ColorType> ColorType for PremultipliedAlpha<BaseColorTy>

Source§

const SPACE: Spaces = BaseColorTy::SPACE

Source§

const NUM_COMPONENTS: usize

Source§

type ComponentTy = <BaseColorTy as ColorType>::ComponentTy

Source§

impl<ColorTy: Debug + ColorType> Debug for PremultipliedAlpha<ColorTy>
where ColorTy::ComponentTy: Debug,

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Aces2065<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<AcesCc<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<AcesCct<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<AcesCg<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Bt2020<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Bt2100<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>

Source§

fn from( [l, c, h, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<CieLCh<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>

Source§

fn from( [l, a, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<CieLab<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>

Source§

fn from( [x, y, z, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<CieXYZ<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<DciP3<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>

Source§

fn from( [x, y, z, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<DciXYZPrime<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<DisplayP3<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<EncodedBt2020<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<EncodedRec709<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<EncodedSrgb<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>

Source§

fn from( [x, alpha]: [ComponentTy; 2], ) -> PremultipliedAlpha<GenericColor1<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>

Source§

fn from( [x, y, z, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<GenericColor3<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>

Source§

fn from( [h, s, l, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Hsl<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>

Source§

fn from( [h, s, v, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Hsv<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>

Source§

fn from( [i, ct, cp, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<ICtCpHLG<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>

Source§

fn from( [i, ct, cp, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<ICtCpPQ<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<LinearSrgb<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>

Source§

fn from([l, alpha]: [ComponentTy; 2]) -> PremultipliedAlpha<Luma<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>

Source§

fn from( [l, alpha]: [ComponentTy; 2], ) -> PremultipliedAlpha<Luminance<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>

Source§

fn from( [l, a, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Oklab<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>

Source§

fn from( [l, c, h, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Oklch<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>

Source§

fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Rec709<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>

Source§

fn from( [y, cb, cr, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<YCbCr<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>

Source§

fn from( [y, cx, cz, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<YCxCz<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>

Source§

fn from( [y, pb, pr, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<YPbPr<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>

Source§

fn from( [y, cb, cr, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<YPrimeCbCr<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>

Source§

fn from( [y, pb, pr, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<YPrimePbPr<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>

Source§

fn from( [y, u, v, alpha]: [ComponentTy; 4], ) -> PremultipliedAlpha<Yuv<ComponentTy>>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Aces2065<ComponentTy>>> for Aces2065<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<Aces2065<ComponentTy>>, ) -> Aces2065<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCc<ComponentTy>>> for AcesCc<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<AcesCc<ComponentTy>>, ) -> AcesCc<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCct<ComponentTy>>> for AcesCct<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<AcesCct<ComponentTy>>, ) -> AcesCct<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCg<ComponentTy>>> for AcesCg<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<AcesCg<ComponentTy>>, ) -> AcesCg<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2020<ComponentTy>>> for Bt2020<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<Bt2020<ComponentTy>>, ) -> Bt2020<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2100<ComponentTy>>> for Bt2100<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<Bt2100<ComponentTy>>, ) -> Bt2100<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLCh<ComponentTy>>> for CieLCh<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<CieLCh<ComponentTy>>, ) -> CieLCh<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLab<ComponentTy>>> for CieLab<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<CieLab<ComponentTy>>, ) -> CieLab<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<CieXYZ<ComponentTy>>, ) -> CieXYZ<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<DciP3<ComponentTy>>> for DciP3<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<DciP3<ComponentTy>>) -> DciP3<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<DciXYZPrime<ComponentTy>>, ) -> DciXYZPrime<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<DisplayP3<ComponentTy>>, ) -> DisplayP3<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<EncodedBt2020<ComponentTy>>, ) -> EncodedBt2020<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>, ) -> EncodedBt2100HLG<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>, ) -> EncodedBt2100PQ<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>, ) -> EncodedDisplayP3<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<EncodedRec709<ComponentTy>>, ) -> EncodedRec709<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<EncodedSrgb<ComponentTy>>, ) -> EncodedSrgb<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<GenericColor1<ComponentTy>>, ) -> GenericColor1<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<GenericColor3<ComponentTy>>, ) -> GenericColor3<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Hsl<ComponentTy>>> for Hsl<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<Hsl<ComponentTy>>) -> Hsl<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Hsv<ComponentTy>>> for Hsv<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<Hsv<ComponentTy>>) -> Hsv<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<ICtCpHLG<ComponentTy>>, ) -> ICtCpHLG<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<ICtCpPQ<ComponentTy>>, ) -> ICtCpPQ<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<LinearSrgb<ComponentTy>>, ) -> LinearSrgb<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Luma<ComponentTy>>> for Luma<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<Luma<ComponentTy>>) -> Luma<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Luminance<ComponentTy>>> for Luminance<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<Luminance<ComponentTy>>, ) -> Luminance<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Oklab<ComponentTy>>> for Oklab<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<Oklab<ComponentTy>>) -> Oklab<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Oklch<ComponentTy>>> for Oklch<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<Oklch<ComponentTy>>) -> Oklch<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Rec709<ComponentTy>>> for Rec709<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<Rec709<ComponentTy>>, ) -> Rec709<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<YCbCr<ComponentTy>>> for YCbCr<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<YCbCr<ComponentTy>>) -> YCbCr<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<YCxCz<ComponentTy>>> for YCxCz<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<YCxCz<ComponentTy>>) -> YCxCz<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<YPbPr<ComponentTy>>> for YPbPr<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<YPbPr<ComponentTy>>) -> YPbPr<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimeCbCr<ComponentTy>>> for YPrimeCbCr<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<YPrimeCbCr<ComponentTy>>, ) -> YPrimeCbCr<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>

Source§

fn from( col_alpha: PremultipliedAlpha<YPrimePbPr<ComponentTy>>, ) -> YPrimePbPr<ComponentTy>

Converts to this type from the input type.
Source§

impl<ComponentTy: Copy> From<PremultipliedAlpha<Yuv<ComponentTy>>> for Yuv<ComponentTy>

Source§

fn from(col_alpha: PremultipliedAlpha<Yuv<ComponentTy>>) -> Yuv<ComponentTy>

Converts to this type from the input type.
Source§

impl<ColorTy: Hash + ColorType> Hash for PremultipliedAlpha<ColorTy>
where ColorTy::ComponentTy: Hash,

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

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

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>

Source§

fn into(self) -> [ComponentTy; 2]

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>

Source§

fn into(self) -> [ComponentTy; 2]

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>

Source§

fn into(self) -> [ComponentTy; 2]

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>

Source§

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

Converts this type into the (usually inferred) input type.
Source§

impl<ColorTy: PartialEq + ColorType> PartialEq for PremultipliedAlpha<ColorTy>
where ColorTy::ComponentTy: PartialEq,

Source§

fn eq(&self, other: &PremultipliedAlpha<ColorTy>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<ColorTy: ColorType + Zeroable> Zeroable for PremultipliedAlpha<ColorTy>

Source§

fn zeroed() -> Self

Source§

impl<ColorTy: Copy + ColorType> Copy for PremultipliedAlpha<ColorTy>
where ColorTy::ComponentTy: Copy,

Source§

impl<ColorTy: Eq + ColorType> Eq for PremultipliedAlpha<ColorTy>
where ColorTy::ComponentTy: Eq,

Source§

impl<ColorTy: ColorType + Pod> Pod for PremultipliedAlpha<ColorTy>

Source§

impl<ColorTy: ColorType> StructuralPartialEq for PremultipliedAlpha<ColorTy>

Auto Trait Implementations§

§

impl<ColorTy> Freeze for PremultipliedAlpha<ColorTy>
where ColorTy: Freeze, <ColorTy as ColorType>::ComponentTy: Freeze,

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

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.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> NoUninit for T
where T: Pod,