[go: up one dir, main page]

Alpha

Struct Alpha 

Source
#[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: ColorTy

The contained color, which is completely separate from the alpha value.

§alpha: ColorTy::ComponentTy

The alpha component.

Trait Implementations§

Source§

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Performs copy-assignment from source. Read more
Source§

impl<BaseColorTy: ColorType> ColorType for Alpha<BaseColorTy>

Source§

const SPACE: Spaces = BaseColorTy::SPACE

Source§

const NUM_COMPONENTS: usize

Source§

type ComponentTy = <BaseColorTy as ColorType>::ComponentTy

Source§

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

Source§

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

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

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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<DisplayP3<ComponentTy>>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<Hsl<ComponentTy>>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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; 2]> for Alpha<Luma<ComponentTy>>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<Aces2065<ComponentTy>>) -> Aces2065<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<AcesCc<ComponentTy>>) -> AcesCc<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<AcesCct<ComponentTy>>) -> AcesCct<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<AcesCg<ComponentTy>>) -> AcesCg<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<Bt2020<ComponentTy>>) -> Bt2020<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<Bt2100<ComponentTy>>) -> Bt2100<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<CieLCh<ComponentTy>>) -> CieLCh<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<CieLab<ComponentTy>>) -> CieLab<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<CieXYZ<ComponentTy>>) -> CieXYZ<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<DciXYZPrime<ComponentTy>>) -> DciXYZPrime<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<DisplayP3<ComponentTy>>) -> DisplayP3<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<ICtCpHLG<ComponentTy>>) -> ICtCpHLG<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<ICtCpPQ<ComponentTy>>) -> ICtCpPQ<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<LinearSrgb<ComponentTy>>) -> LinearSrgb<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<Luminance<ComponentTy>>) -> Luminance<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn from(col_alpha: Alpha<Rec709<ComponentTy>>) -> Rec709<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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>

Source§

fn from(col_alpha: Alpha<YPrimePbPr<ComponentTy>>) -> YPrimePbPr<ComponentTy>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

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

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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,

Source§

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

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

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

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

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

Source§

fn zeroed() -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Auto Trait Implementations§

§

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

§

impl<ColorTy> RefUnwindSafe for Alpha<ColorTy>
where ColorTy: RefUnwindSafe, <ColorTy as ColorType>::ComponentTy: RefUnwindSafe,

§

impl<ColorTy> Send for Alpha<ColorTy>
where ColorTy: Send, <ColorTy as ColorType>::ComponentTy: Send,

§

impl<ColorTy> Sync for Alpha<ColorTy>
where ColorTy: Sync, <ColorTy as ColorType>::ComponentTy: Sync,

§

impl<ColorTy> Unpin for Alpha<ColorTy>
where ColorTy: Unpin, <ColorTy as ColorType>::ComponentTy: Unpin,

§

impl<ColorTy> UnwindSafe for Alpha<ColorTy>
where ColorTy: UnwindSafe, <ColorTy as ColorType>::ComponentTy: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

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

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

Source§

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

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

Source§

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