Struct maplibre::style::Alpha

#[repr(C)]
pub struct Alpha<ColorTy>
where ColorTy: ColorType,
{ pub color: ColorTy, pub alpha: <ColorTy as ColorType>::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 as ColorType>::ComponentTy

The alpha component.

Trait Implementations§

§

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

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

§

type ComponentTy = <BaseColorTy as ColorType>::ComponentTy

§

const SPACE: Spaces = BaseColorTy::SPACE

§

const NUM_COMPONENTS: usize = _

§

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

§

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

Formats the value using the given formatter. Read more
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Rec709<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<GenericColor3<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<GenericColor3<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 2]> for Alpha<GenericColor1<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 2]) -> Alpha<GenericColor1<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 2]) -> Alpha<Luminance<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 2]> for Alpha<Luma<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 2]) -> Alpha<Luma<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<AcesCg<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Aces2065<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<AcesCc<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<AcesCct<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<DisplayP3<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<DisplayP3<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedDisplayP3<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<EncodedDisplayP3<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<DciP3<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedSrgb<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<EncodedSrgb<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<DciXYZPrime<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Bt2020<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<EncodedBt2020<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Bt2100<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100PQ<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<EncodedBt2100PQ<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100HLG<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<EncodedBt2100HLG<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<ICtCpPQ<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<ICtCpHLG<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<CieXYZ<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<CieLab<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<LinearSrgb<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<CieLCh<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Oklab<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Oklch<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Hsl<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<Hsl<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Hsv<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<YCbCr<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<YPrimeCbCr<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<YPbPr<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<YPrimePbPr<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<YPrimePbPr<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<Yuv<ComponentTy>>

Converts to this type from the input type.
§

impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedRec709<ComponentTy>>
where ComponentTy: Copy,

§

fn from(_: [ComponentTy; 4]) -> Alpha<EncodedRec709<ComponentTy>>

Converts to this type from the input type.
§

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

§

fn from(_: [ComponentTy; 4]) -> Alpha<YCxCz<ComponentTy>>

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<GenericColor1<ComponentTy>>> for GenericColor1<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<GenericColor3<ComponentTy>>> for GenericColor3<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

impl<ComponentTy> From<Alpha<YPrimePbPr<ComponentTy>>> for YPrimePbPr<ComponentTy>
where ComponentTy: Copy,

§

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

Converts to this type from the input type.
§

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

§

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

Converts to this type from the input type.
§

impl From<Color> for Alpha<EncodedSrgb<f32>>

§

fn from(c: Color) -> Alpha<EncodedSrgb<f32>>

Converts to this type from the input type.
§

impl From<Color> for Alpha<EncodedSrgb<f64>>

§

fn from(c: Color) -> Alpha<EncodedSrgb<f64>>

Converts to this type from the input type.
§

impl From<Color> for Alpha<EncodedSrgb>

§

fn from(c: Color) -> Alpha<EncodedSrgb>

Converts to this type from the input type.
§

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

§

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

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
§

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

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

§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

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

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

§

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

§

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

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
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> DynEq for T
where T: Any + Eq,

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

source§

impl<T> DynHash for T
where T: DynEq + Hash,

source§

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

source§

fn dyn_hash(&self, state: &mut dyn Hasher)

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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

§

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

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

§

fn is_within(&self, b: &G2) -> bool

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

source§

impl<T> Resource for T
where T: 'static,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,