#[repr(C)]pub struct Alpha<ColorTy: ColorType> {
pub color: ColorTy,
pub alpha: ColorTy::ComponentTy,
}Expand description
A color with an alpha component.
The color components and alpha component are completely separate.
Fields§
§color: ColorTyThe contained color, which is completely separate from the alpha value.
alpha: ColorTy::ComponentTyThe alpha component.
Trait Implementations§
Source§impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<Aces2065<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCc<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCct<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCg<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Bt2020<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Bt2100<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<CieLCh<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<CieLab<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<CieXYZ<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<DciP3<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<DisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for Alpha<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 Alpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Hsl<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Hsv<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<ICtCpHLG<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<ICtCpPQ<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Luma<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for Alpha<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 Alpha<Luminance<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 2]> for Alpha<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 Alpha<Oklab<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Oklch<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Rec709<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<YCbCr<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<YCxCz<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<YPbPr<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Yuv<ComponentTy>>
impl<ComponentTy: Copy> AsMut<[ComponentTy; 4]> for Alpha<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 Alpha<Aces2065<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCc<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCct<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCg<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Bt2020<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Bt2100<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<CieLCh<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<CieLab<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<CieXYZ<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<DciP3<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<DisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for Alpha<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 Alpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Hsl<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Hsv<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<ICtCpHLG<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<ICtCpPQ<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Luma<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for Alpha<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 Alpha<Luminance<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 2]> for Alpha<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 Alpha<Oklab<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Oklch<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Rec709<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<YCbCr<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<YCxCz<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<YPbPr<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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 Alpha<Yuv<ComponentTy>>
impl<ComponentTy: Copy> AsRef<[ComponentTy; 4]> for Alpha<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<BaseColorTy: ColorType> ColorType for Alpha<BaseColorTy>
impl<BaseColorTy: ColorType> ColorType for Alpha<BaseColorTy>
const SPACE: Spaces = BaseColorTy::SPACE
const NUM_COMPONENTS: usize
type ComponentTy = <BaseColorTy as ColorType>::ComponentTy
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<DciXYZPrime<ComponentTy>>
Source§fn from([x, y, z, alpha]: [ComponentTy; 4]) -> Alpha<DciXYZPrime<ComponentTy>>
fn from([x, y, z, alpha]: [ComponentTy; 4]) -> Alpha<DciXYZPrime<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedBt2020<ComponentTy>>
Source§fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<EncodedBt2020<ComponentTy>>
fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<EncodedBt2020<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100HLG<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> Alpha<EncodedBt2100HLG<ComponentTy>>
fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> Alpha<EncodedBt2100HLG<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100PQ<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> Alpha<EncodedBt2100PQ<ComponentTy>>
fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> Alpha<EncodedBt2100PQ<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedDisplayP3<ComponentTy>>
Source§fn from(
[r, g, b, alpha]: [ComponentTy; 4],
) -> Alpha<EncodedDisplayP3<ComponentTy>>
fn from( [r, g, b, alpha]: [ComponentTy; 4], ) -> Alpha<EncodedDisplayP3<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedRec709<ComponentTy>>
Source§fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<EncodedRec709<ComponentTy>>
fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<EncodedRec709<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<EncodedSrgb<ComponentTy>>
Source§fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<EncodedSrgb<ComponentTy>>
fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<EncodedSrgb<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 2]> for Alpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 2]> for Alpha<GenericColor1<ComponentTy>>
Source§fn from([x, alpha]: [ComponentTy; 2]) -> Alpha<GenericColor1<ComponentTy>>
fn from([x, alpha]: [ComponentTy; 2]) -> Alpha<GenericColor1<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<GenericColor3<ComponentTy>>
Source§fn from([x, y, z, alpha]: [ComponentTy; 4]) -> Alpha<GenericColor3<ComponentTy>>
fn from([x, y, z, alpha]: [ComponentTy; 4]) -> Alpha<GenericColor3<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<LinearSrgb<ComponentTy>>
Source§fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<LinearSrgb<ComponentTy>>
fn from([r, g, b, alpha]: [ComponentTy; 4]) -> Alpha<LinearSrgb<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<YPrimeCbCr<ComponentTy>>
Source§fn from([y, cb, cr, alpha]: [ComponentTy; 4]) -> Alpha<YPrimeCbCr<ComponentTy>>
fn from([y, cb, cr, alpha]: [ComponentTy; 4]) -> Alpha<YPrimeCbCr<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> From<[ComponentTy; 4]> for Alpha<YPrimePbPr<ComponentTy>>
Source§fn from([y, pb, pr, alpha]: [ComponentTy; 4]) -> Alpha<YPrimePbPr<ComponentTy>>
fn from([y, pb, pr, alpha]: [ComponentTy; 4]) -> Alpha<YPrimePbPr<ComponentTy>>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy>
Source§fn from(col_alpha: Alpha<DciXYZPrime<ComponentTy>>) -> DciXYZPrime<ComponentTy>
fn from(col_alpha: Alpha<DciXYZPrime<ComponentTy>>) -> DciXYZPrime<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>
Source§fn from(
col_alpha: Alpha<EncodedBt2020<ComponentTy>>,
) -> EncodedBt2020<ComponentTy>
fn from( col_alpha: Alpha<EncodedBt2020<ComponentTy>>, ) -> EncodedBt2020<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
Source§fn from(
col_alpha: Alpha<EncodedBt2100HLG<ComponentTy>>,
) -> EncodedBt2100HLG<ComponentTy>
fn from( col_alpha: Alpha<EncodedBt2100HLG<ComponentTy>>, ) -> EncodedBt2100HLG<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
Source§fn from(
col_alpha: Alpha<EncodedBt2100PQ<ComponentTy>>,
) -> EncodedBt2100PQ<ComponentTy>
fn from( col_alpha: Alpha<EncodedBt2100PQ<ComponentTy>>, ) -> EncodedBt2100PQ<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
Source§fn from(
col_alpha: Alpha<EncodedDisplayP3<ComponentTy>>,
) -> EncodedDisplayP3<ComponentTy>
fn from( col_alpha: Alpha<EncodedDisplayP3<ComponentTy>>, ) -> EncodedDisplayP3<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
Source§fn from(
col_alpha: Alpha<EncodedRec709<ComponentTy>>,
) -> EncodedRec709<ComponentTy>
fn from( col_alpha: Alpha<EncodedRec709<ComponentTy>>, ) -> EncodedRec709<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
Source§fn from(col_alpha: Alpha<EncodedSrgb<ComponentTy>>) -> EncodedSrgb<ComponentTy>
fn from(col_alpha: Alpha<EncodedSrgb<ComponentTy>>) -> EncodedSrgb<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>
Source§fn from(
col_alpha: Alpha<GenericColor1<ComponentTy>>,
) -> GenericColor1<ComponentTy>
fn from( col_alpha: Alpha<GenericColor1<ComponentTy>>, ) -> GenericColor1<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>
Source§fn from(
col_alpha: Alpha<GenericColor3<ComponentTy>>,
) -> GenericColor3<ComponentTy>
fn from( col_alpha: Alpha<GenericColor3<ComponentTy>>, ) -> GenericColor3<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy>
Source§fn from(col_alpha: Alpha<LinearSrgb<ComponentTy>>) -> LinearSrgb<ComponentTy>
fn from(col_alpha: Alpha<LinearSrgb<ComponentTy>>) -> LinearSrgb<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<YPrimeCbCr<ComponentTy>>> for YPrimeCbCr<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<YPrimeCbCr<ComponentTy>>> for YPrimeCbCr<ComponentTy>
Source§fn from(col_alpha: Alpha<YPrimeCbCr<ComponentTy>>) -> YPrimeCbCr<ComponentTy>
fn from(col_alpha: Alpha<YPrimeCbCr<ComponentTy>>) -> YPrimeCbCr<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<Alpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
impl<ComponentTy: Copy> From<Alpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
Source§fn from(col_alpha: Alpha<YPrimePbPr<ComponentTy>>) -> YPrimePbPr<ComponentTy>
fn from(col_alpha: Alpha<YPrimePbPr<ComponentTy>>) -> YPrimePbPr<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<Aces2065<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCc<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCct<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<AcesCg<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Bt2020<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Bt2100<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<CieLCh<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<CieLab<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<CieXYZ<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<DciP3<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<DciXYZPrime<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<DisplayP3<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2020<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2100HLG<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedBt2100PQ<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedDisplayP3<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedRec709<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<EncodedSrgb<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<GenericColor1<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for Alpha<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 Alpha<GenericColor3<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Hsl<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Hsv<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<ICtCpHLG<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<ICtCpPQ<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<LinearSrgb<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Luma<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for Alpha<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 Alpha<Luminance<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 2]> for Alpha<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 Alpha<Oklab<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Oklch<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Rec709<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<YCbCr<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<YCxCz<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<YPbPr<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<YPrimeCbCr<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<YPrimePbPr<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<Yuv<ComponentTy>>
impl<ComponentTy: Copy> Into<[ComponentTy; 4]> for Alpha<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 Alpha<ColorTy>where
ColorTy::ComponentTy: PartialEq,
impl<ColorTy: PartialEq + ColorType> PartialEq for Alpha<ColorTy>where
ColorTy::ComponentTy: PartialEq,
impl<ColorTy: Copy + ColorType> Copy for Alpha<ColorTy>where
ColorTy::ComponentTy: Copy,
impl<ColorTy: Eq + ColorType> Eq for Alpha<ColorTy>where
ColorTy::ComponentTy: Eq,
impl<ColorTy: ColorType + Pod> Pod for Alpha<ColorTy>
impl<ColorTy: ColorType> StructuralPartialEq for Alpha<ColorTy>
Auto Trait Implementations§
impl<ColorTy> Freeze for Alpha<ColorTy>
impl<ColorTy> RefUnwindSafe for Alpha<ColorTy>
impl<ColorTy> Send for Alpha<ColorTy>
impl<ColorTy> Sync for Alpha<ColorTy>
impl<ColorTy> Unpin for Alpha<ColorTy>
impl<ColorTy> UnwindSafe for Alpha<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.