Struct nannou_core::color::Alpha
source · #[repr(C)]pub struct Alpha<C, T> {
pub color: C,
pub alpha: T,
}
Expand description
An alpha component wrapper for colors.
Fields§
§color: C
The color.
alpha: T
The transparency component. 0.0 is fully transparent and 1.0 is fully opaque.
Implementations§
source§impl<S, T, A> Alpha<Hsl<S, T>, A>
impl<S, T, A> Alpha<Hsl<S, T>, A>
Hsla
implementations.
sourcepub fn with_wp<H>(
hue: H,
saturation: T,
lightness: T,
alpha: A
) -> Alpha<Hsl<S, T>, A>
pub fn with_wp<H>( hue: H, saturation: T, lightness: T, alpha: A ) -> Alpha<Hsl<S, T>, A>
Linear HSL and transparency.
sourcepub fn into_components(self) -> (RgbHue<T>, T, T, A)
pub fn into_components(self) -> (RgbHue<T>, T, T, A)
Convert to a (hue, saturation, lightness, alpha)
tuple.
sourcepub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hsl<S, T>, A>
pub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hsl<S, T>, A>
Convert from a (hue, saturation, lightness, alpha)
tuple.
source§impl<S, T, A> Alpha<Hsv<S, T>, A>
impl<S, T, A> Alpha<Hsv<S, T>, A>
Hsva
implementations.
sourcepub fn with_wp<H>(
hue: H,
saturation: T,
value: T,
alpha: A
) -> Alpha<Hsv<S, T>, A>
pub fn with_wp<H>( hue: H, saturation: T, value: T, alpha: A ) -> Alpha<Hsv<S, T>, A>
Linear HSV and transparency.
sourcepub fn into_components(self) -> (RgbHue<T>, T, T, A)
pub fn into_components(self) -> (RgbHue<T>, T, T, A)
Convert to a (hue, saturation, value, alpha)
tuple.
sourcepub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hsv<S, T>, A>
pub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hsv<S, T>, A>
Convert from a (hue, saturation, value, alpha)
tuple.
source§impl<S, T, A> Alpha<Hwb<S, T>, A>
impl<S, T, A> Alpha<Hwb<S, T>, A>
Hwba
implementations.
sourcepub fn with_wp<H>(
hue: H,
whiteness: T,
blackness: T,
alpha: A
) -> Alpha<Hwb<S, T>, A>
pub fn with_wp<H>( hue: H, whiteness: T, blackness: T, alpha: A ) -> Alpha<Hwb<S, T>, A>
Linear HWB and transparency.
sourcepub fn into_components(self) -> (RgbHue<T>, T, T, A)
pub fn into_components(self) -> (RgbHue<T>, T, T, A)
Convert to a (hue, whiteness, blackness, alpha)
tuple.
sourcepub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hwb<S, T>, A>
pub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hwb<S, T>, A>
Convert from a (hue, whiteness, blackness, alpha)
tuple.
source§impl<Wp, T, A> Alpha<Lab<Wp, T>, A>
impl<Wp, T, A> Alpha<Lab<Wp, T>, A>
Laba
implementations.
sourcepub fn with_wp(l: T, a: T, b: T, alpha: A) -> Alpha<Lab<Wp, T>, A>
pub fn with_wp(l: T, a: T, b: T, alpha: A) -> Alpha<Lab<Wp, T>, A>
CIE L*a*b* and transparency.
sourcepub fn into_components(self) -> (T, T, T, A)
pub fn into_components(self) -> (T, T, T, A)
Convert to a (L\*, a\*, b\*, alpha)
tuple.
sourcepub fn from_components(_: (T, T, T, A)) -> Alpha<Lab<Wp, T>, A>
pub fn from_components(_: (T, T, T, A)) -> Alpha<Lab<Wp, T>, A>
Convert from a (L\*, a\*, b\*, alpha)
tuple.
source§impl<Wp, T, A> Alpha<Lch<Wp, T>, A>
impl<Wp, T, A> Alpha<Lch<Wp, T>, A>
Lcha
implementations.
sourcepub fn with_wp<H>(l: T, chroma: T, hue: H, alpha: A) -> Alpha<Lch<Wp, T>, A>
pub fn with_wp<H>(l: T, chroma: T, hue: H, alpha: A) -> Alpha<Lch<Wp, T>, A>
CIE L*C*h° and transparency.
sourcepub fn into_components(self) -> (T, T, LabHue<T>, A)
pub fn into_components(self) -> (T, T, LabHue<T>, A)
Convert to a (L\*, C\*, h°, alpha)
tuple.
sourcepub fn from_components<H>(_: (T, T, H, A)) -> Alpha<Lch<Wp, T>, A>
pub fn from_components<H>(_: (T, T, H, A)) -> Alpha<Lch<Wp, T>, A>
Convert from a (L\*, C\*, h°, alpha)
tuple.
source§impl<S, T, A> Alpha<Luma<S, T>, A>
impl<S, T, A> Alpha<Luma<S, T>, A>
Lumaa
implementations.
sourcepub fn new(luma: T, alpha: A) -> Alpha<Luma<S, T>, A>
pub fn new(luma: T, alpha: A) -> Alpha<Luma<S, T>, A>
Create a luminance color with transparency.
sourcepub fn into_format<U, B>(self) -> Alpha<Luma<S, U>, B>
pub fn into_format<U, B>(self) -> Alpha<Luma<S, U>, B>
Convert into another component type.
sourcepub fn from_format<U, B>(color: Alpha<Luma<S, U>, B>) -> Alpha<Luma<S, T>, A>
pub fn from_format<U, B>(color: Alpha<Luma<S, U>, B>) -> Alpha<Luma<S, T>, A>
Convert from another component type.
sourcepub fn into_components(self) -> (T, A)
pub fn into_components(self) -> (T, A)
Convert to a (luma, alpha)
tuple.
sourcepub fn from_components(_: (T, A)) -> Alpha<Luma<S, T>, A>
pub fn from_components(_: (T, A)) -> Alpha<Luma<S, T>, A>
Convert from a (luma, alpha)
tuple.
source§impl<S, T, A> Alpha<Luma<S, T>, A>
impl<S, T, A> Alpha<Luma<S, T>, A>
Lumaa
implementations.
sourcepub fn into_linear(
self
) -> Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>
pub fn into_linear( self ) -> Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>
Convert the color to linear luminance with transparency.
sourcepub fn from_linear(
color: Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>
) -> Alpha<Luma<S, T>, A>
pub fn from_linear( color: Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A> ) -> Alpha<Luma<S, T>, A>
Convert linear luminance to nonlinear luminance with transparency.
sourcepub fn into_encoding<St>(self) -> Alpha<Luma<St, T>, A>
pub fn into_encoding<St>(self) -> Alpha<Luma<St, T>, A>
Convert the color to a different encoding with transparency.
source§impl<S, T, A> Alpha<Rgb<S, T>, A>
impl<S, T, A> Alpha<Rgb<S, T>, A>
Rgba
implementations.
sourcepub fn into_format<U, B>(self) -> Alpha<Rgb<S, U>, B>
pub fn into_format<U, B>(self) -> Alpha<Rgb<S, U>, B>
Convert into another component type.
sourcepub fn from_format<U, B>(color: Alpha<Rgb<S, U>, B>) -> Alpha<Rgb<S, T>, A>
pub fn from_format<U, B>(color: Alpha<Rgb<S, U>, B>) -> Alpha<Rgb<S, T>, A>
Convert from another component type.
sourcepub fn into_components(self) -> (T, T, T, A)
pub fn into_components(self) -> (T, T, T, A)
Convert to a (red, green, blue, alpha)
tuple.
sourcepub fn from_components(_: (T, T, T, A)) -> Alpha<Rgb<S, T>, A>
pub fn from_components(_: (T, T, T, A)) -> Alpha<Rgb<S, T>, A>
Convert from a (red, green, blue, alpha)
tuple.
source§impl<S, T, A> Alpha<Rgb<S, T>, A>
impl<S, T, A> Alpha<Rgb<S, T>, A>
Rgba
implementations.
sourcepub fn into_linear(self) -> Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A>
pub fn into_linear(self) -> Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A>
Convert the color to linear RGB with transparency.
sourcepub fn from_linear(
color: Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A>
) -> Alpha<Rgb<S, T>, A>
pub fn from_linear( color: Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A> ) -> Alpha<Rgb<S, T>, A>
Convert linear RGB to nonlinear RGB with transparency.
sourcepub fn into_encoding<St>(self) -> Alpha<Rgb<St, T>, A>
pub fn into_encoding<St>(self) -> Alpha<Rgb<St, T>, A>
Convert the color to a different encoding with transparency.
source§impl<Wp, T, A> Alpha<Xyz<Wp, T>, A>
impl<Wp, T, A> Alpha<Xyz<Wp, T>, A>
Xyza
implementations.
sourcepub fn into_components(self) -> (T, T, T, A)
pub fn into_components(self) -> (T, T, T, A)
Convert to a (X, Y, Z, alpha)
tuple.
sourcepub fn from_components(_: (T, T, T, A)) -> Alpha<Xyz<Wp, T>, A>
pub fn from_components(_: (T, T, T, A)) -> Alpha<Xyz<Wp, T>, A>
Convert from a (X, Y, Z, alpha)
tuple.
source§impl<Wp, T, A> Alpha<Yxy<Wp, T>, A>
impl<Wp, T, A> Alpha<Yxy<Wp, T>, A>
Yxya
implementations.
sourcepub fn with_wp(x: T, y: T, luma: T, alpha: A) -> Alpha<Yxy<Wp, T>, A>
pub fn with_wp(x: T, y: T, luma: T, alpha: A) -> Alpha<Yxy<Wp, T>, A>
CIE Yxy and transparency.
sourcepub fn into_components(self) -> (T, T, T, A)
pub fn into_components(self) -> (T, T, T, A)
Convert to a (x, y, luma)
, a.k.a. (x, y, Y)
tuple.
sourcepub fn from_components(_: (T, T, T, A)) -> Alpha<Yxy<Wp, T>, A>
pub fn from_components(_: (T, T, T, A)) -> Alpha<Yxy<Wp, T>, A>
Convert from a (x, y, luma)
, a.k.a. (x, y, Y)
tuple.
Trait Implementations§
source§impl<C, T> AbsDiffEq for Alpha<C, T>where
C: AbsDiffEq<Epsilon = <T as AbsDiffEq>::Epsilon>,
T: AbsDiffEq,
<T as AbsDiffEq>::Epsilon: Clone,
impl<C, T> AbsDiffEq for Alpha<C, T>where
C: AbsDiffEq<Epsilon = <T as AbsDiffEq>::Epsilon>,
T: AbsDiffEq,
<T as AbsDiffEq>::Epsilon: Clone,
source§fn default_epsilon() -> <Alpha<C, T> as AbsDiffEq>::Epsilon
fn default_epsilon() -> <Alpha<C, T> as AbsDiffEq>::Epsilon
source§fn abs_diff_eq(
&self,
other: &Alpha<C, T>,
epsilon: <T as AbsDiffEq>::Epsilon
) -> bool
fn abs_diff_eq( &self, other: &Alpha<C, T>, epsilon: <T as AbsDiffEq>::Epsilon ) -> bool
§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
ApproxEq::abs_diff_eq
.source§impl<T, C> AddAssign<T> for Alpha<C, T>
impl<T, C> AddAssign<T> for Alpha<C, T>
source§fn add_assign(&mut self, c: T)
fn add_assign(&mut self, c: T)
+=
operation. Read moresource§impl<C, T> AddAssign for Alpha<C, T>
impl<C, T> AddAssign for Alpha<C, T>
source§fn add_assign(&mut self, other: Alpha<C, T>)
fn add_assign(&mut self, other: Alpha<C, T>)
+=
operation. Read moresource§impl<C, T> Blend for Alpha<C, T>
impl<C, T> Blend for Alpha<C, T>
source§fn into_premultiplied(self) -> PreAlpha<<C as Blend>::Color, T>
fn into_premultiplied(self) -> PreAlpha<<C as Blend>::Color, T>
source§fn from_premultiplied(color: PreAlpha<<C as Blend>::Color, T>) -> Alpha<C, T>
fn from_premultiplied(color: PreAlpha<<C as Blend>::Color, T>) -> Alpha<C, T>
source§fn blend<F>(self, destination: Self, blend_function: F) -> Selfwhere
F: BlendFunction<Self::Color>,
fn blend<F>(self, destination: Self, blend_function: F) -> Selfwhere
F: BlendFunction<Self::Color>,
destination
, using
blend_function
. Anything that implements BlendFunction
is
acceptable, including functions and closures. Read moresource§fn over(self, other: Self) -> Self
fn over(self, other: Self) -> Self
self
over other
. This is the good old common alpha
composition equation.source§fn inside(self, other: Self) -> Self
fn inside(self, other: Self) -> Self
self
that overlaps the visible parts of
other
.source§fn outside(self, other: Self) -> Self
fn outside(self, other: Self) -> Self
self
that lies outside the visible parts of
other
.source§fn plus(self, other: Self) -> Self
fn plus(self, other: Self) -> Self
self
and other
. This uses the alpha component to regulate the
effect, so it’s not just plain component wise addition.source§fn multiply(self, other: Self) -> Self
fn multiply(self, other: Self) -> Self
self
with other
. This uses the alpha component to regulate
the effect, so it’s not just plain component wise multiplication.source§fn screen(self, other: Self) -> Self
fn screen(self, other: Self) -> Self
self
or other
.source§fn overlay(self, other: Self) -> Self
fn overlay(self, other: Self) -> Self
self
or other
if other is dark, or screen them if other
is light. This results in an S curve.source§fn dodge(self, other: Self) -> Self
fn dodge(self, other: Self) -> Self
other
to reflect self
. Results in other
if self
is
black.source§fn burn(self, other: Self) -> Self
fn burn(self, other: Self) -> Self
other
to reflect self
. Results in other
if self
is
white.source§fn hard_light(self, other: Self) -> Self
fn hard_light(self, other: Self) -> Self
self
or other
if other is dark, or screen them if self
is light. This is similar to overlay
, but depends on self
instead
of other
.source§fn soft_light(self, other: Self) -> Self
fn soft_light(self, other: Self) -> Self
other
if self
is light, or darken other
as if it’s burned
if self
is dark. The effect is increased if the components of self
is further from 0.5.source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
self
and other
. It’s
basically abs(self - other)
, but regulated by the alpha component.source§impl<C, T> ComponentWise for Alpha<C, T>where
C: ComponentWise<Scalar = T>,
T: Clone,
impl<C, T> ComponentWise for Alpha<C, T>where
C: ComponentWise<Scalar = T>,
T: Clone,
source§impl<'de, C, T> Deserialize<'de> for Alpha<C, T>where
C: Deserialize<'de>,
T: Deserialize<'de>,
impl<'de, C, T> Deserialize<'de> for Alpha<C, T>where
C: Deserialize<'de>,
T: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Alpha<C, T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Alpha<C, T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl<T, C> DivAssign<T> for Alpha<C, T>
impl<T, C> DivAssign<T> for Alpha<C, T>
source§fn div_assign(&mut self, c: T)
fn div_assign(&mut self, c: T)
/=
operation. Read moresource§impl<C, T> DivAssign for Alpha<C, T>
impl<C, T> DivAssign for Alpha<C, T>
source§fn div_assign(&mut self, other: Alpha<C, T>)
fn div_assign(&mut self, other: Alpha<C, T>)
/=
operation. Read moresource§impl<S, T, _S> From<Alpha<Hsl<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Hsl<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Hsl<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Hsl<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Hsv<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Hsv<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Hsv<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Hsv<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Hwb<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Hwb<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Hwb<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Hwb<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T> From<Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
impl<S, T> From<Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
source§fn from(
color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
fn from( color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>
source§impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
source§fn from(
color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
fn from( color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>
source§impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
source§fn from(color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
fn from(color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
source§impl<S, T> From<Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
impl<S, T> From<Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
source§fn from(
color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
fn from( color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>
source§impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
source§fn from(
color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
fn from( color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>
source§impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
source§fn from(color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
fn from(color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hsl<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hsl<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hsv<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hsv<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hwb<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hwb<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Rgb<S, T>, T>where
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Rgb<S, T>, T>where
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hsl<S, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hsl<S, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hsv<S, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hsv<S, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hwb<S, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hwb<S, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Rgb<S, T>where
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Rgb<S, T>where
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Lab<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Lab<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Lch<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Lch<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Xyz<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Xyz<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Yxy<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Yxy<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Lab<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Lab<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Lch<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Lch<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Luma<S, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Xyz<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Xyz<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Yxy<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Rgb<_S, T>, T>> for Yxy<Wp, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<S, T> From<Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
impl<S, T> From<Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
source§fn from(
color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
fn from( color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>
source§impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
source§fn from(
color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
fn from( color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>
source§impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
source§fn from(color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
fn from(color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
source§impl<S, T> From<Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
impl<S, T> From<Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T>
source§fn from(
color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
fn from( color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>
source§impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
source§fn from(
color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
fn from( color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>
source§impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
source§fn from(color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
fn from(color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
source§impl<S, T, _S> From<Hsl<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Hsl<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Hsv<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Hsv<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T, _S> From<Hwb<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Hwb<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<S, T> From<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
source§fn from(
color: Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
fn from( color: Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Lab<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Lab<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
source§fn from(color: Lab<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
fn from(color: Lab<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
source§impl<S, T> From<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
source§fn from(
color: Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
fn from( color: Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Lch<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Lch<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
source§fn from(color: Lch<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
fn from(color: Lch<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
source§impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hsl<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hsl<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hsv<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hsv<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hwb<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hwb<S, T>, T>where
T: Component + Float,
S: RgbSpace,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
source§impl<S, T, _S> From<Luma<_S, T>> for Alpha<Rgb<S, T>, T>where
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Luma<_S, T>> for Alpha<Rgb<S, T>, T>where
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
source§impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Lab<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Lab<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Lch<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Lch<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Luma<S, T>, T>where
T: Component + Float,
S: LumaStandard,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
source§impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Xyz<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Xyz<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Yxy<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Rgb<_S, T>> for Alpha<Yxy<Wp, T>, T>where
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace<WhitePoint = Wp>,
source§impl<S, T> From<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
source§fn from(
color: Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
fn from( color: Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Xyz<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Xyz<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
source§fn from(color: Xyz<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
fn from(color: Xyz<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
source§impl<S, T> From<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
impl<S, T> From<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T>
source§fn from(
color: Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
fn from( color: Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>
source§impl<S, T> From<Yxy<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
impl<S, T> From<Yxy<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
source§fn from(color: Yxy<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
fn from(color: Yxy<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
source§impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Lab<Wp, T>, A>
impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Lab<Wp, T>, A>
source§fn into(self) -> (T, T, T, A)
fn into(self) -> (T, T, T, A)
source§impl<S, T, A> Into<(T, T, T, A)> for Alpha<Rgb<S, T>, A>
impl<S, T, A> Into<(T, T, T, A)> for Alpha<Rgb<S, T>, A>
source§fn into(self) -> (T, T, T, A)
fn into(self) -> (T, T, T, A)
source§impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A>
impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A>
source§fn into(self) -> (T, T, T, A)
fn into(self) -> (T, T, T, A)
source§impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A>
impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A>
source§fn into(self) -> (T, T, T, A)
fn into(self) -> (T, T, T, A)
source§impl<C, S, T> IntoLinSrgba<S> for Alpha<C, T>
impl<C, S, T> IntoLinSrgba<S> for Alpha<C, T>
source§fn into_lin_srgba(self) -> LinSrgba<S>
fn into_lin_srgba(self) -> LinSrgba<S>
source§impl<C, T> Limited for Alpha<C, T>
impl<C, T> Limited for Alpha<C, T>
source§impl<T, C> MulAssign<T> for Alpha<C, T>
impl<T, C> MulAssign<T> for Alpha<C, T>
source§fn mul_assign(&mut self, c: T)
fn mul_assign(&mut self, c: T)
*=
operation. Read moresource§impl<C, T> MulAssign for Alpha<C, T>
impl<C, T> MulAssign for Alpha<C, T>
source§fn mul_assign(&mut self, other: Alpha<C, T>)
fn mul_assign(&mut self, other: Alpha<C, T>)
*=
operation. Read moresource§impl<C, T> PartialEq for Alpha<C, T>
impl<C, T> PartialEq for Alpha<C, T>
source§impl<T, C> Pixel<T> for Alpha<C, T>where
C: Pixel<T>,
impl<T, C> Pixel<T> for Alpha<C, T>where
C: Pixel<T>,
source§fn as_raw_mut<P>(&mut self) -> &mut P
fn as_raw_mut<P>(&mut self) -> &mut P
source§fn into_raw<P>(self) -> Pwhere
P: RawPixelSized<T>,
fn into_raw<P>(self) -> Pwhere
P: RawPixelSized<T>,
source§fn from_raw_mut<P>(pixel: &mut P) -> &mut Self
fn from_raw_mut<P>(pixel: &mut P) -> &mut Self
source§fn from_raw_slice(slice: &[T]) -> &[Self]
fn from_raw_slice(slice: &[T]) -> &[Self]
source§fn from_raw_slice_mut(slice: &mut [T]) -> &mut [Self]
fn from_raw_slice_mut(slice: &mut [T]) -> &mut [Self]
source§impl<C, T> RelativeEq for Alpha<C, T>where
C: RelativeEq<Epsilon = <T as AbsDiffEq>::Epsilon>,
T: RelativeEq,
<T as AbsDiffEq>::Epsilon: Clone,
impl<C, T> RelativeEq for Alpha<C, T>where
C: RelativeEq<Epsilon = <T as AbsDiffEq>::Epsilon>,
T: RelativeEq,
<T as AbsDiffEq>::Epsilon: Clone,
source§fn default_max_relative() -> <Alpha<C, T> as AbsDiffEq>::Epsilon
fn default_max_relative() -> <Alpha<C, T> as AbsDiffEq>::Epsilon
source§fn relative_eq(
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as AbsDiffEq>::Epsilon,
max_relative: <Alpha<C, T> as AbsDiffEq>::Epsilon
) -> bool
fn relative_eq( &self, other: &Alpha<C, T>, epsilon: <Alpha<C, T> as AbsDiffEq>::Epsilon, max_relative: <Alpha<C, T> as AbsDiffEq>::Epsilon ) -> bool
§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon ) -> bool
ApproxEq::relative_eq
.source§impl<C, T> Serialize for Alpha<C, T>
impl<C, T> Serialize for Alpha<C, T>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl<T, C> SubAssign<T> for Alpha<C, T>
impl<T, C> SubAssign<T> for Alpha<C, T>
source§fn sub_assign(&mut self, c: T)
fn sub_assign(&mut self, c: T)
-=
operation. Read moresource§impl<C, T> SubAssign for Alpha<C, T>
impl<C, T> SubAssign for Alpha<C, T>
source§fn sub_assign(&mut self, other: Alpha<C, T>)
fn sub_assign(&mut self, other: Alpha<C, T>)
-=
operation. Read moresource§impl<C, T> UlpsEq for Alpha<C, T>where
C: UlpsEq<Epsilon = <T as AbsDiffEq>::Epsilon>,
T: UlpsEq,
<T as AbsDiffEq>::Epsilon: Clone,
impl<C, T> UlpsEq for Alpha<C, T>where
C: UlpsEq<Epsilon = <T as AbsDiffEq>::Epsilon>,
T: UlpsEq,
<T as AbsDiffEq>::Epsilon: Clone,
source§fn default_max_ulps() -> u32
fn default_max_ulps() -> u32
impl<C, T> Copy for Alpha<C, T>
impl<C, T> StructuralPartialEq for Alpha<C, T>
Auto Trait Implementations§
impl<C, T> RefUnwindSafe for Alpha<C, T>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<C, T> Send for Alpha<C, T>
impl<C, T> Sync for Alpha<C, T>
impl<C, T> Unpin for Alpha<C, T>
impl<C, T> UnwindSafe for Alpha<C, T>where
C: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T, U> ConvertFrom<T> for U
impl<T, U> ConvertFrom<T> for U
source§fn convert_from(t: T) -> U
fn convert_from(t: T) -> U
source§fn try_convert_from(t: T) -> Result<U, OutOfBounds<U>>
fn try_convert_from(t: T) -> Result<U, OutOfBounds<U>>
OutOfBounds
error is returned which contains the unclamped color. Read moresource§fn convert_unclamped_from(val: T) -> Self
fn convert_unclamped_from(val: T) -> Self
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
OutOfBounds
error is returned which contains the unclamped color. Read more