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: ColorTyThe contained color, which has been premultiplied with alpha
alpha: ColorTy::ComponentTyThe alpha component.
Trait Implementations§
Source§impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 2]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 2]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 2]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 2]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 2]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 2]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>
Source§fn as_ref(&self) -> &[ComponentTy; 4]
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,
impl<ColorTy: Clone + ColorType> Clone for PremultipliedAlpha<ColorTy>where
ColorTy::ComponentTy: Clone,
Source§fn clone(&self) -> PremultipliedAlpha<ColorTy>
fn clone(&self) -> PremultipliedAlpha<ColorTy>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<BaseColorTy: ColorType> ColorType for PremultipliedAlpha<BaseColorTy>
impl<BaseColorTy: ColorType> ColorType for PremultipliedAlpha<BaseColorTy>
const SPACE: Spaces = BaseColorTy::SPACE
const NUM_COMPONENTS: usize
type ComponentTy = <BaseColorTy as ColorType>::ComponentTy
Source§impl<ColorTy: Debug + ColorType> Debug for PremultipliedAlpha<ColorTy>where
ColorTy::ComponentTy: Debug,
impl<ColorTy: Debug + ColorType> Debug for PremultipliedAlpha<ColorTy>where
ColorTy::ComponentTy: Debug,
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Aces2065<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<AcesCc<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<AcesCct<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<AcesCg<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Bt2020<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Bt2100<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>
Source§fn from(
[l, c, h, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<CieLCh<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>
Source§fn from(
[l, a, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<CieLab<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>
Source§fn from(
[x, y, z, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<CieXYZ<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<DciP3<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<DisplayP3<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>
Source§fn from(
[h, s, l, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Hsl<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>
Source§fn from(
[h, s, v, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Hsv<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>
Source§fn from(
[i, ct, cp, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<ICtCpHLG<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>
Source§fn from(
[i, ct, cp, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<ICtCpPQ<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>
Source§fn from([l, alpha]: [ComponentTy; 2]) -> PremultipliedAlpha<Luma<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
Source§fn from(
[l, alpha]: [ComponentTy; 2],
) -> PremultipliedAlpha<Luminance<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>
Source§fn from(
[l, a, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Oklab<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>
Source§fn from(
[l, c, h, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Oklch<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Rec709<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>
Source§fn from(
[y, cb, cr, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<YCbCr<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>
Source§fn from(
[y, cx, cz, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<YCxCz<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>
Source§fn from(
[y, pb, pr, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<YPbPr<ComponentTy>>
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>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>
Source§fn from(
[y, u, v, alpha]: [ComponentTy; 4],
) -> PremultipliedAlpha<Yuv<ComponentTy>>
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>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Aces2065<ComponentTy>>> for Aces2065<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCc<ComponentTy>>> for AcesCc<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCc<ComponentTy>>> for AcesCc<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCct<ComponentTy>>> for AcesCct<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCct<ComponentTy>>> for AcesCct<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCg<ComponentTy>>> for AcesCg<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<AcesCg<ComponentTy>>> for AcesCg<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2020<ComponentTy>>> for Bt2020<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2020<ComponentTy>>> for Bt2020<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2100<ComponentTy>>> for Bt2100<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Bt2100<ComponentTy>>> for Bt2100<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLCh<ComponentTy>>> for CieLCh<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLCh<ComponentTy>>> for CieLCh<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLab<ComponentTy>>> for CieLab<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<CieLab<ComponentTy>>> for CieLab<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<Luminance<ComponentTy>>> for Luminance<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Luminance<ComponentTy>>> for Luminance<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<Rec709<ComponentTy>>> for Rec709<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<Rec709<ComponentTy>>> for Rec709<ComponentTy>
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimeCbCr<ComponentTy>>> for YPrimeCbCr<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimeCbCr<ComponentTy>>> for YPrimeCbCr<ComponentTy>
Source§fn 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.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
Source§fn 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.
Source§impl<ColorTy: Hash + ColorType> Hash for PremultipliedAlpha<ColorTy>where
ColorTy::ComponentTy: Hash,
impl<ColorTy: Hash + ColorType> Hash for PremultipliedAlpha<ColorTy>where
ColorTy::ComponentTy: Hash,
Source§impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Aces2065<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<AcesCc<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<AcesCct<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<AcesCg<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Bt2020<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Bt2100<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<CieLCh<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<CieLab<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<CieXYZ<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciP3<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DciXYZPrime<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<DisplayP3<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2020<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedRec709<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<EncodedSrgb<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<GenericColor1<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 2]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<GenericColor3<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Hsl<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Hsv<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpHLG<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<ICtCpPQ<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<LinearSrgb<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<Luma<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 2]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for PremultipliedAlpha<Luminance<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 2]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Oklab<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Oklch<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Rec709<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YCbCr<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YCxCz<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPbPr<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimeCbCr<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<YPrimePbPr<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for PremultipliedAlpha<Yuv<ComponentTy>>
Source§fn into(self) -> [ComponentTy; 4]
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,
impl<ColorTy: PartialEq + ColorType> PartialEq for PremultipliedAlpha<ColorTy>where
ColorTy::ComponentTy: PartialEq,
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> StructuralPartialEq for PremultipliedAlpha<ColorTy>
Auto Trait Implementations§
impl<ColorTy> Freeze for PremultipliedAlpha<ColorTy>
impl<ColorTy> RefUnwindSafe for PremultipliedAlpha<ColorTy>
impl<ColorTy> Send for PremultipliedAlpha<ColorTy>
impl<ColorTy> Sync for PremultipliedAlpha<ColorTy>
impl<ColorTy> Unpin for PremultipliedAlpha<ColorTy>
impl<ColorTy> UnwindSafe for PremultipliedAlpha<ColorTy>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§fn 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.