pub struct Alpha<ColorTy> where
ColorTy: ColorStruct, {
pub color: ColorTy,
pub alpha: <ColorTy as ColorStruct>::ComponentTy,
}Expand description
A color with an alpha component.
The color components and alpha component are completely separate.
Fields
color: ColorTyThe contained color, which is completely separate from the alpha value.
alpha: <ColorTy as ColorStruct>::ComponentTyThe alpha component.
Trait Implementations
impl<ColorTy> Clone for Alpha<ColorTy> where
ColorTy: Clone + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Clone,
impl<ColorTy> Clone for Alpha<ColorTy> where
ColorTy: Clone + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Clone,
impl<ColorTy> Debug for Alpha<ColorTy> where
ColorTy: Debug + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Debug,
impl<ColorTy> Debug for Alpha<ColorTy> where
ColorTy: Debug + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Debug,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<CieXYZ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<CieXYZ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Oklab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Oklab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<AcesCg<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<AcesCg<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<DisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<DisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100PQ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100PQ<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<EncodedBt2100PQ<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<EncodedBt2100PQ<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<ICtCpPQ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<ICtCpPQ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Aces2065<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Aces2065<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<GenericColor<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<GenericColor<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<GenericColor<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<GenericColor<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<DciXYZPrime<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<DciXYZPrime<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<DciXYZPrime<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<DciXYZPrime<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Oklch<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Oklch<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<DciP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<DciP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Bt2100<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Bt2100<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<EncodedSrgb<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<EncodedSrgb<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<EncodedBt2020<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<EncodedBt2020<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100HLG<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedBt2100HLG<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<EncodedBt2100HLG<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<EncodedBt2100HLG<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<CieLab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<CieLab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Hsv<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Hsv<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Rec709<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Rec709<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Bt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Bt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<CieLCh<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<CieLCh<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<AcesCc<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<AcesCc<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<ICtCpHLG<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<ICtCpHLG<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Hsl<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<Hsl<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedRec709<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedRec709<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<EncodedRec709<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<EncodedRec709<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<LinearSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<LinearSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<LinearSrgb<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<LinearSrgb<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedDisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<EncodedDisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
pub fn from([ComponentTy; 4]) -> Alpha<EncodedDisplayP3<ComponentTy>>
pub fn from([ComponentTy; 4]) -> Alpha<EncodedDisplayP3<ComponentTy>>
Performs the conversion.
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<AcesCct<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<[ComponentTy; 4]> for Alpha<AcesCct<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Aces2065<ComponentTy>>> for Aces2065<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Aces2065<ComponentTy>>> for Aces2065<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<AcesCc<ComponentTy>>> for AcesCc<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<AcesCc<ComponentTy>>> for AcesCc<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<AcesCct<ComponentTy>>> for AcesCct<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<AcesCct<ComponentTy>>> for AcesCct<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<AcesCg<ComponentTy>>> for AcesCg<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<AcesCg<ComponentTy>>> for AcesCg<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Bt2020<ComponentTy>>> for Bt2020<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Bt2020<ComponentTy>>> for Bt2020<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Bt2100<ComponentTy>>> for Bt2100<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Bt2100<ComponentTy>>> for Bt2100<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<CieLCh<ComponentTy>>> for CieLCh<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<CieLCh<ComponentTy>>> for CieLCh<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<CieLab<ComponentTy>>> for CieLab<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<CieLab<ComponentTy>>> for CieLab<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<CieXYZ<ComponentTy>>> for CieXYZ<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<DciP3<ComponentTy>>> for DciP3<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<DciP3<ComponentTy>>> for DciP3<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<DciXYZPrime<ComponentTy>>> for DciXYZPrime<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<DciXYZPrime<ComponentTy>>
) -> DciXYZPrime<ComponentTy>
pub fn from(
col_alpha: Alpha<DciXYZPrime<ComponentTy>>
) -> DciXYZPrime<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>
pub fn from(
col_alpha: Alpha<EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<EncodedBt2100HLG<ComponentTy>>> for EncodedBt2100HLG<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<EncodedBt2100HLG<ComponentTy>>
) -> EncodedBt2100HLG<ComponentTy>
pub fn from(
col_alpha: Alpha<EncodedBt2100HLG<ComponentTy>>
) -> EncodedBt2100HLG<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
pub fn from(
col_alpha: Alpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>
pub fn from(
col_alpha: Alpha<EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>
pub fn from(
col_alpha: Alpha<EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<EncodedSrgb<ComponentTy>>> for EncodedSrgb<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<EncodedSrgb<ComponentTy>>
) -> EncodedSrgb<ComponentTy>
pub fn from(
col_alpha: Alpha<EncodedSrgb<ComponentTy>>
) -> EncodedSrgb<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<GenericColor<ComponentTy>>> for GenericColor<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<GenericColor<ComponentTy>>> for GenericColor<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<GenericColor<ComponentTy>>
) -> GenericColor<ComponentTy>
pub fn from(
col_alpha: Alpha<GenericColor<ComponentTy>>
) -> GenericColor<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<Hsl<ComponentTy>>> for Hsl<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Hsl<ComponentTy>>> for Hsl<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Hsv<ComponentTy>>> for Hsv<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Hsv<ComponentTy>>> for Hsv<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<LinearSrgb<ComponentTy>>> for LinearSrgb<ComponentTy> where
ComponentTy: Clone + Copy,
pub fn from(
col_alpha: Alpha<LinearSrgb<ComponentTy>>
) -> LinearSrgb<ComponentTy>
pub fn from(
col_alpha: Alpha<LinearSrgb<ComponentTy>>
) -> LinearSrgb<ComponentTy>
Performs the conversion.
impl<ComponentTy> From<Alpha<Oklab<ComponentTy>>> for Oklab<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Oklab<ComponentTy>>> for Oklab<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Oklch<ComponentTy>>> for Oklch<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Oklch<ComponentTy>>> for Oklch<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Rec709<ComponentTy>>> for Rec709<ComponentTy> where
ComponentTy: Clone + Copy,
impl<ComponentTy> From<Alpha<Rec709<ComponentTy>>> for Rec709<ComponentTy> where
ComponentTy: Clone + Copy,
impl From<Color> for Alpha<EncodedSrgb<u8>>
impl From<Color> for Alpha<EncodedSrgb<u8>>
pub fn from(c: Color) -> Alpha<EncodedSrgb<u8>>
pub fn from(c: Color) -> Alpha<EncodedSrgb<u8>>
Performs the conversion.
impl From<Color> for Alpha<EncodedSrgb<f32>>
impl From<Color> for Alpha<EncodedSrgb<f32>>
pub fn from(c: Color) -> Alpha<EncodedSrgb<f32>>
pub fn from(c: Color) -> Alpha<EncodedSrgb<f32>>
Performs the conversion.
impl From<Color> for Alpha<EncodedSrgb<f64>>
impl From<Color> for Alpha<EncodedSrgb<f64>>
pub fn from(c: Color) -> Alpha<EncodedSrgb<f64>>
pub fn from(c: Color) -> Alpha<EncodedSrgb<f64>>
Performs the conversion.
impl<ColorTy> Hash for Alpha<ColorTy> where
ColorTy: Hash + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Hash,
impl<ColorTy> Hash for Alpha<ColorTy> where
ColorTy: Hash + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Hash,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedBt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedBt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Bt2100<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Bt2100<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Hsv<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Hsv<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<ICtCpHLG<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<ICtCpHLG<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedBt2100PQ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedBt2100PQ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<ICtCpPQ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<ICtCpPQ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<AcesCg<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<AcesCg<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<GenericColor<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<GenericColor<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<AcesCc<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<AcesCc<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedBt2100HLG<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedBt2100HLG<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<CieLCh<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<CieLCh<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Bt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Bt2020<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<AcesCct<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<AcesCct<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedDisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedDisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Aces2065<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Aces2065<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<CieLab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<CieLab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<LinearSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<LinearSrgb<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<DciP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<DciP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Oklab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Oklab<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<CieXYZ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<CieXYZ<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedRec709<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<EncodedRec709<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Rec709<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Rec709<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Oklch<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Oklch<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<DciXYZPrime<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<DciXYZPrime<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Hsl<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<Hsl<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<DisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ComponentTy> Into<[ComponentTy; 4]> for Alpha<DisplayP3<ComponentTy>> where
ComponentTy: Clone + Copy,
impl<ColorTy> Ord for Alpha<ColorTy> where
ColorTy: Ord + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Ord,
impl<ColorTy> Ord for Alpha<ColorTy> where
ColorTy: Ord + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Ord,
impl<ColorTy> PartialEq<Alpha<ColorTy>> for Alpha<ColorTy> where
ColorTy: PartialEq<ColorTy> + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: PartialEq<<ColorTy as ColorStruct>::ComponentTy>,
impl<ColorTy> PartialEq<Alpha<ColorTy>> for Alpha<ColorTy> where
ColorTy: PartialEq<ColorTy> + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: PartialEq<<ColorTy as ColorStruct>::ComponentTy>,
impl<ColorTy> PartialOrd<Alpha<ColorTy>> for Alpha<ColorTy> where
ColorTy: PartialOrd<ColorTy> + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: PartialOrd<<ColorTy as ColorStruct>::ComponentTy>,
impl<ColorTy> PartialOrd<Alpha<ColorTy>> for Alpha<ColorTy> where
ColorTy: PartialOrd<ColorTy> + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: PartialOrd<<ColorTy as ColorStruct>::ComponentTy>,
pub fn partial_cmp(&self, other: &Alpha<ColorTy>) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Alpha<ColorTy>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<ColorTy> Copy for Alpha<ColorTy> where
ColorTy: Copy + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Copy,
impl<ColorTy> Eq for Alpha<ColorTy> where
ColorTy: Eq + ColorStruct,
<ColorTy as ColorStruct>::ComponentTy: Eq,
impl<ColorTy> StructuralEq for Alpha<ColorTy> where
ColorTy: ColorStruct,
impl<ColorTy> StructuralPartialEq for Alpha<ColorTy> where
ColorTy: ColorStruct,
Auto Trait Implementations
impl<ColorTy> RefUnwindSafe for Alpha<ColorTy> where
ColorTy: RefUnwindSafe,
<ColorTy as ColorStruct>::ComponentTy: RefUnwindSafe,
impl<ColorTy> Send for Alpha<ColorTy> where
ColorTy: Send,
<ColorTy as ColorStruct>::ComponentTy: Send,
impl<ColorTy> Sync for Alpha<ColorTy> where
ColorTy: Sync,
<ColorTy as ColorStruct>::ComponentTy: Sync,
impl<ColorTy> Unpin for Alpha<ColorTy> where
ColorTy: Unpin,
<ColorTy as ColorStruct>::ComponentTy: Unpin,
impl<ColorTy> UnwindSafe for Alpha<ColorTy> where
ColorTy: UnwindSafe,
<ColorTy as ColorStruct>::ComponentTy: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
pub fn as_any(&self) -> &(dyn Any + 'static)
pub 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. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub 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. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more