[−][src]Struct amethyst_rendy::palette::Alpha
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.
Methods
impl<T, A> Alpha<Hsl<Srgb, T>, A> where
A: Component,
T: Component + Float,
[src]
A: Component,
T: Component + Float,
Hsla
implementations.
pub fn new<H>(
hue: H,
saturation: T,
lightness: T,
alpha: A
) -> Alpha<Hsl<Srgb, T>, A> where
H: Into<RgbHue<T>>,
[src]
hue: H,
saturation: T,
lightness: T,
alpha: A
) -> Alpha<Hsl<Srgb, T>, A> where
H: Into<RgbHue<T>>,
HSL and transparency for linear sRGB.
impl<S, T, A> Alpha<Hsl<S, T>, A> where
A: Component,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
S: RgbSpace,
T: Component + Float,
Hsla
implementations.
pub fn with_wp<H>(
hue: H,
saturation: T,
lightness: T,
alpha: A
) -> Alpha<Hsl<S, T>, A> where
H: Into<RgbHue<T>>,
[src]
hue: H,
saturation: T,
lightness: T,
alpha: A
) -> Alpha<Hsl<S, T>, A> where
H: Into<RgbHue<T>>,
Linear HSL and transparency.
pub fn into_components(self) -> (RgbHue<T>, T, T, A)
[src]
Convert to a (hue, saturation, lightness, alpha)
tuple.
pub fn from_components<H>((H, T, T, A)) -> Alpha<Hsl<S, T>, A> where
H: Into<RgbHue<T>>,
[src]
H: Into<RgbHue<T>>,
Convert from a (hue, saturation, lightness, alpha)
tuple.
impl<T, A> Alpha<Hsv<Srgb, T>, A> where
A: Component,
T: Component + Float,
[src]
A: Component,
T: Component + Float,
Hsva
implementations.
pub fn new<H>(
hue: H,
saturation: T,
value: T,
alpha: A
) -> Alpha<Hsv<Srgb, T>, A> where
H: Into<RgbHue<T>>,
[src]
hue: H,
saturation: T,
value: T,
alpha: A
) -> Alpha<Hsv<Srgb, T>, A> where
H: Into<RgbHue<T>>,
HSV and transparency for linear sRGB.
impl<S, T, A> Alpha<Hsv<S, T>, A> where
A: Component,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
S: RgbSpace,
T: Component + Float,
Hsva
implementations.
pub fn with_wp<H>(
hue: H,
saturation: T,
value: T,
alpha: A
) -> Alpha<Hsv<S, T>, A> where
H: Into<RgbHue<T>>,
[src]
hue: H,
saturation: T,
value: T,
alpha: A
) -> Alpha<Hsv<S, T>, A> where
H: Into<RgbHue<T>>,
Linear HSV and transparency.
pub fn into_components(self) -> (RgbHue<T>, T, T, A)
[src]
Convert to a (hue, saturation, value, alpha)
tuple.
pub fn from_components<H>((H, T, T, A)) -> Alpha<Hsv<S, T>, A> where
H: Into<RgbHue<T>>,
[src]
H: Into<RgbHue<T>>,
Convert from a (hue, saturation, value, alpha)
tuple.
impl<T, A> Alpha<Hwb<Srgb, T>, A> where
A: Component,
T: Component + Float,
[src]
A: Component,
T: Component + Float,
Hwba
implementations.
pub fn new<H>(
hue: H,
whiteness: T,
blackness: T,
alpha: A
) -> Alpha<Hwb<Srgb, T>, A> where
H: Into<RgbHue<T>>,
[src]
hue: H,
whiteness: T,
blackness: T,
alpha: A
) -> Alpha<Hwb<Srgb, T>, A> where
H: Into<RgbHue<T>>,
HWB and transparency for linear sRGB.
impl<S, T, A> Alpha<Hwb<S, T>, A> where
A: Component,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
S: RgbSpace,
T: Component + Float,
Hwba
implementations.
pub fn with_wp<H>(
hue: H,
whiteness: T,
blackness: T,
alpha: A
) -> Alpha<Hwb<S, T>, A> where
H: Into<RgbHue<T>>,
[src]
hue: H,
whiteness: T,
blackness: T,
alpha: A
) -> Alpha<Hwb<S, T>, A> where
H: Into<RgbHue<T>>,
Linear HWB and transparency.
pub fn into_components(self) -> (RgbHue<T>, T, T, A)
[src]
Convert to a (hue, whiteness, blackness, alpha)
tuple.
pub fn from_components<H>((H, T, T, A)) -> Alpha<Hwb<S, T>, A> where
H: Into<RgbHue<T>>,
[src]
H: Into<RgbHue<T>>,
Convert from a (hue, whiteness, blackness, alpha)
tuple.
impl<T, A> Alpha<Lab<D65, T>, A> where
A: Component,
T: Component + Float,
[src]
A: Component,
T: Component + Float,
Laba
implementations.
pub fn new(l: T, a: T, b: T, alpha: A) -> Alpha<Lab<D65, T>, A>
[src]
CIE L*a*b* and transparency and white point D65.
impl<Wp, T, A> Alpha<Lab<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
Laba
implementations.
pub fn with_wp(l: T, a: T, b: T, alpha: A) -> Alpha<Lab<Wp, T>, A>
[src]
CIE L*a*b* and transparency.
pub fn into_components(self) -> (T, T, T, A)
[src]
Convert to a (L\*, a\*, b\*, alpha)
tuple.
pub fn from_components((T, T, T, A)) -> Alpha<Lab<Wp, T>, A>
[src]
Convert from a (L\*, a\*, b\*, alpha)
tuple.
impl<T, A> Alpha<Lch<D65, T>, A> where
A: Component,
T: Component + Float,
[src]
A: Component,
T: Component + Float,
Lcha
implementations.
pub fn new<H>(l: T, chroma: T, hue: H, alpha: A) -> Alpha<Lch<D65, T>, A> where
H: Into<LabHue<T>>,
[src]
H: Into<LabHue<T>>,
CIE L*C*h° and transparency with white point D65.
impl<Wp, T, A> Alpha<Lch<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
Lcha
implementations.
pub fn with_wp<H>(l: T, chroma: T, hue: H, alpha: A) -> Alpha<Lch<Wp, T>, A> where
H: Into<LabHue<T>>,
[src]
H: Into<LabHue<T>>,
CIE L*C*h° and transparency.
pub fn into_components(self) -> (T, T, LabHue<T>, A)
[src]
Convert to a (L\*, C\*, h°, alpha)
tuple.
pub fn from_components<H>((T, T, H, A)) -> Alpha<Lch<Wp, T>, A> where
H: Into<LabHue<T>>,
[src]
H: Into<LabHue<T>>,
Convert from a (L\*, C\*, h°, alpha)
tuple.
impl<S, T, A> Alpha<Luma<S, T>, A> where
A: Component,
S: LumaStandard,
T: Component,
[src]
A: Component,
S: LumaStandard,
T: Component,
Lumaa
implementations.
pub fn new(luma: T, alpha: A) -> Alpha<Luma<S, T>, A>
[src]
Create a luminance color with transparency.
pub fn into_format<U, B>(self) -> Alpha<Luma<S, U>, B> where
B: Component,
U: Component,
[src]
B: Component,
U: Component,
Convert into another component type.
pub fn from_format<U, B>(color: Alpha<Luma<S, U>, B>) -> Alpha<Luma<S, T>, A> where
B: Component,
U: Component,
[src]
B: Component,
U: Component,
Convert from another component type.
pub fn into_components(self) -> (T, A)
[src]
Convert to a (luma, alpha)
tuple.
pub fn from_components((T, A)) -> Alpha<Luma<S, T>, A>
[src]
Convert from a (luma, alpha)
tuple.
impl<S, T, A> Alpha<Luma<S, T>, A> where
A: Component,
S: LumaStandard,
T: Component + Float,
[src]
A: Component,
S: LumaStandard,
T: Component + Float,
Lumaa
implementations.
pub fn into_linear(
self
) -> Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>
[src]
self
) -> Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>
Convert the color to linear luminance with transparency.
pub fn from_linear(
color: Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>
) -> Alpha<Luma<S, T>, A>
[src]
color: Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>
) -> Alpha<Luma<S, T>, A>
Convert linear luminance to nonlinear luminance with transparency.
pub fn into_encoding<St>(self) -> Alpha<Luma<St, T>, A> where
St: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
St: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
Convert the color to a different encoding with transparency.
pub fn from_encoding<St>(color: Alpha<Luma<St, T>, A>) -> Alpha<Luma<S, T>, A> where
St: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
St: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
Convert luminance from a different encoding with transparency.
impl<S, T, A> Alpha<Rgb<S, T>, A> where
A: Component,
S: RgbStandard,
T: Component,
[src]
A: Component,
S: RgbStandard,
T: Component,
Rgba
implementations.
pub fn new(red: T, green: T, blue: T, alpha: A) -> Alpha<Rgb<S, T>, A>
[src]
Nonlinear RGB.
pub fn into_format<U, B>(self) -> Alpha<Rgb<S, U>, B> where
B: Component,
U: Component,
[src]
B: Component,
U: Component,
Convert into another component type.
pub fn from_format<U, B>(color: Alpha<Rgb<S, U>, B>) -> Alpha<Rgb<S, T>, A> where
B: Component,
U: Component,
[src]
B: Component,
U: Component,
Convert from another component type.
pub fn into_components(self) -> (T, T, T, A)
[src]
Convert to a (red, green, blue, alpha)
tuple.
pub fn from_components((T, T, T, A)) -> Alpha<Rgb<S, T>, A>
[src]
Convert from a (red, green, blue, alpha)
tuple.
impl<S, T, A> Alpha<Rgb<S, T>, A> where
A: Component,
S: RgbStandard,
T: Component + Float,
[src]
A: Component,
S: RgbStandard,
T: Component + Float,
Rgba
implementations.
pub fn into_linear(self) -> Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A>
[src]
Convert the color to linear RGB with transparency.
pub fn from_linear(
color: Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A>
) -> Alpha<Rgb<S, T>, A>
[src]
color: Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A>
) -> Alpha<Rgb<S, T>, A>
Convert linear RGB to nonlinear RGB with transparency.
pub fn into_encoding<St>(self) -> Alpha<Rgb<St, T>, A> where
St: RgbStandard<Space = <S as RgbStandard>::Space>,
[src]
St: RgbStandard<Space = <S as RgbStandard>::Space>,
Convert the color to a different encoding with transparency.
pub fn from_encoding<St>(color: Alpha<Rgb<St, T>, A>) -> Alpha<Rgb<S, T>, A> where
St: RgbStandard<Space = <S as RgbStandard>::Space>,
[src]
St: RgbStandard<Space = <S as RgbStandard>::Space>,
Convert RGB from a different encoding with transparency.
impl<T, A> Alpha<Xyz<D65, T>, A> where
A: Component,
T: Component + Float,
[src]
A: Component,
T: Component + Float,
Xyza
implementations.
pub fn new(x: T, y: T, luma: T, alpha: A) -> Alpha<Xyz<D65, T>, A>
[src]
CIE Yxy and transparency with white point D65.
impl<Wp, T, A> Alpha<Xyz<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
Xyza
implementations.
pub fn with_wp(x: T, y: T, z: T, alpha: A) -> Alpha<Xyz<Wp, T>, A>
[src]
CIE XYZ and transparency.
pub fn into_components(self) -> (T, T, T, A)
[src]
Convert to a (X, Y, Z, alpha)
tuple.
pub fn from_components((T, T, T, A)) -> Alpha<Xyz<Wp, T>, A>
[src]
Convert from a (X, Y, Z, alpha)
tuple.
impl<T, A> Alpha<Yxy<D65, T>, A> where
A: Component,
T: Component + Float,
[src]
A: Component,
T: Component + Float,
Yxya
implementations.
pub fn new(x: T, y: T, luma: T, alpha: A) -> Alpha<Yxy<D65, T>, A>
[src]
CIE Yxy and transparency with white point D65.
impl<Wp, T, A> Alpha<Yxy<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
Yxya
implementations.
pub fn with_wp(x: T, y: T, luma: T, alpha: A) -> Alpha<Yxy<Wp, T>, A>
[src]
CIE Yxy and transparency.
pub fn into_components(self) -> (T, T, T, A)
[src]
Convert to a (x, y, luma)
, a.k.a. (x, y, Y)
tuple.
pub fn from_components((T, T, T, A)) -> Alpha<Yxy<Wp, T>, A>
[src]
Convert from a (x, y, luma)
, a.k.a. (x, y, Y)
tuple.
impl<T> Alpha<Color<Srgb, T>, T> where
T: Component + Float,
[src]
T: Component + Float,
Colora
implementations.
pub fn linear_y(luma: T, alpha: T) -> Alpha<Color<Srgb, T>, T>
[src]
Linear luminance.
pub fn linear_rgb(
red: T,
green: T,
blue: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
[src]
red: T,
green: T,
blue: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
Linear RGB.
pub fn xyz(x: T, y: T, z: T, alpha: T) -> Alpha<Color<Srgb, T>, T>
[src]
CIE XYZ.
pub fn yxy(x: T, y: T, luma: T, alpha: T) -> Alpha<Color<Srgb, T>, T>
[src]
CIE Yxy.
pub fn lab(l: T, a: T, b: T, alpha: T) -> Alpha<Color<Srgb, T>, T>
[src]
CIE L*a*b*.
pub fn lch(
l: T,
chroma: T,
hue: LabHue<T>,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
[src]
l: T,
chroma: T,
hue: LabHue<T>,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
CIE L*C*h°.
pub fn hsv(
hue: RgbHue<T>,
saturation: T,
value: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
[src]
hue: RgbHue<T>,
saturation: T,
value: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
Linear HSV.
pub fn hsl(
hue: RgbHue<T>,
saturation: T,
lightness: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
[src]
hue: RgbHue<T>,
saturation: T,
lightness: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
Linear HSL.
pub fn hwb(
hue: RgbHue<T>,
whiteness: T,
balckness: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
[src]
hue: RgbHue<T>,
whiteness: T,
balckness: T,
alpha: T
) -> Alpha<Color<Srgb, T>, T>
Linear HWB.
Trait Implementations
impl<C, T> Default for Alpha<C, T> where
C: Default,
T: Component,
[src]
C: Default,
T: Component,
impl<C, T> Copy for Alpha<C, T> where
C: Copy,
T: Copy,
[src]
C: Copy,
T: Copy,
impl<T, C> Pixel<T> for Alpha<C, T> where
C: Pixel<T>,
[src]
C: Pixel<T>,
const CHANNELS: usize
[src]
fn as_raw<P>(&self) -> &P where
P: RawPixel<T> + ?Sized,
[src]
P: RawPixel<T> + ?Sized,
Cast as a reference to raw color components.
fn as_raw_mut<P>(&mut self) -> &mut P where
P: RawPixel<T> + ?Sized,
[src]
P: RawPixel<T> + ?Sized,
Cast as a mutable reference to raw color components.
fn into_raw<P>(self) -> P where
P: RawPixelSized<T>,
[src]
P: RawPixelSized<T>,
Convert from raw color components.
fn from_raw<P>(pixel: &P) -> &Self where
P: RawPixel<T> + ?Sized,
[src]
P: RawPixel<T> + ?Sized,
Cast from a reference to raw color components.
fn from_raw_mut<P>(pixel: &mut P) -> &mut Self where
P: RawPixel<T> + ?Sized,
[src]
P: RawPixel<T> + ?Sized,
Cast from a mutable reference to raw color components.
fn from_raw_slice(slice: &[T]) -> &[Self]
[src]
Cast a slice of raw color components to a slice of colors. Read more
fn from_raw_slice_mut(slice: &mut [T]) -> &mut [Self]
[src]
Cast a mutable slice of raw color components to a mutable slice of colors. Read more
fn into_raw_slice(slice: &[Self]) -> &[T]
[src]
Cast a slice of colors to a slice of raw color components. Read more
fn into_raw_slice_mut(slice: &mut [Self]) -> &mut [T]
[src]
Cast a mutable slice of colors to a mutable slice of raw color components. Read more
impl<C, T> Clone for Alpha<C, T> where
C: Clone,
T: Clone,
[src]
C: Clone,
T: Clone,
fn clone(&self) -> Alpha<C, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'de, C, T> Deserialize<'de> for Alpha<C, T> where
C: Deserialize<'de>,
T: Deserialize<'de>,
[src]
C: Deserialize<'de>,
T: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Alpha<C, T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Alpha<C, T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<C, T> Blend for Alpha<C, T> where
C: Blend,
T: Float,
<C as Blend>::Color: ComponentWise,
Alpha<C, T>: Into<Alpha<<C as Blend>::Color, T>>,
Alpha<C, T>: From<Alpha<<C as Blend>::Color, T>>,
<<C as Blend>::Color as ComponentWise>::Scalar == T,
[src]
C: Blend,
T: Float,
<C as Blend>::Color: ComponentWise,
Alpha<C, T>: Into<Alpha<<C as Blend>::Color, T>>,
Alpha<C, T>: From<Alpha<<C as Blend>::Color, T>>,
<<C as Blend>::Color as ComponentWise>::Scalar == T,
type Color = <C as Blend>::Color
The core color type. Typically Self
for color types without alpha.
fn into_premultiplied(self) -> PreAlpha<<C as Blend>::Color, T>
[src]
fn from_premultiplied(color: PreAlpha<<C as Blend>::Color, T>) -> Alpha<C, T>
[src]
fn blend<F>(self, destination: Self, blend_function: F) -> Self where
F: BlendFunction<Self::Color>,
[src]
F: BlendFunction<Self::Color>,
Blend self, as the source color, with destination
, using blend_function
. Anything that implements BlendFunction
is acceptable, including functions and closures. Read more
fn over(self, other: Self) -> Self
[src]
Place self
over other
. This is the good old common alpha composition equation. Read more
fn inside(self, other: Self) -> Self
[src]
Results in the parts of self
that overlaps the visible parts of other
. Read more
fn outside(self, other: Self) -> Self
[src]
Results in the parts of self
that lies outside the visible parts of other
. Read more
fn atop(self, other: Self) -> Self
[src]
Place self
over only the visible parts of other
.
fn xor(self, other: Self) -> Self
[src]
Results in either self
or other
, where they do not overlap.
fn plus(self, other: Self) -> Self
[src]
Add self
and other
. This uses the alpha component to regulate the effect, so it's not just plain component wise addition. Read more
fn multiply(self, other: Self) -> Self
[src]
Multiply self
with other
. This uses the alpha component to regulate the effect, so it's not just plain component wise multiplication. Read more
fn screen(self, other: Self) -> Self
[src]
Make a color which is at least as light as self
or other
.
fn overlay(self, other: Self) -> Self
[src]
Multiply self
or other
if other is dark, or screen them if other
is light. This results in an S curve. Read more
fn darken(self, other: Self) -> Self
[src]
Return the darkest parts of self
and other
.
fn lighten(self, other: Self) -> Self
[src]
Return the lightest parts of self
and other
.
fn dodge(self, other: Self) -> Self
[src]
Lighten other
to reflect self
. Results in other
if self
is black. Read more
fn burn(self, other: Self) -> Self
[src]
Darken other
to reflect self
. Results in other
if self
is white. Read more
fn hard_light(self, other: Self) -> Self
[src]
Multiply 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
. Read more
fn soft_light(self, other: Self) -> Self
[src]
Lighten 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. Read more
fn difference(self, other: Self) -> Self
[src]
Return the absolute difference between self
and other
. It's basically abs(self - other)
, but regulated by the alpha component. Read more
fn exclusion(self, other: Self) -> Self
[src]
Similar to difference
, but appears to result in a lower contrast. other
is inverted if self
is white, and preserved if self
is black. Read more
impl<C, T> PartialEq<Alpha<C, T>> for Alpha<C, T> where
C: PartialEq<C>,
T: PartialEq<T>,
[src]
C: PartialEq<C>,
T: PartialEq<T>,
impl<C, T> Add<Alpha<C, T>> for Alpha<C, T> where
C: Add<C>,
T: Float,
[src]
C: Add<C>,
T: Float,
type Output = Alpha<<C as Add<C>>::Output, <T as Add<T>>::Output>
The resulting type after applying the +
operator.
fn add(self, other: Alpha<C, T>) -> <Alpha<C, T> as Add<Alpha<C, T>>>::Output
[src]
impl<T, C> Add<T> for Alpha<C, T> where
C: Add<T>,
T: Add<T> + Clone,
[src]
C: Add<T>,
T: Add<T> + Clone,
type Output = Alpha<<C as Add<T>>::Output, <T as Add<T>>::Output>
The resulting type after applying the +
operator.
fn add(self, c: T) -> <Alpha<C, T> as Add<T>>::Output
[src]
impl<C, T> Limited for Alpha<C, T> where
C: Limited,
T: Component,
[src]
C: Limited,
T: Component,
impl<C, T, P> AsMut<P> for Alpha<C, T> where
C: Pixel<T>,
P: RawPixel<T> + ?Sized,
[src]
C: Pixel<T>,
P: RawPixel<T> + ?Sized,
impl<C, T> UpperHex for Alpha<C, T> where
C: UpperHex,
T: UpperHex,
[src]
C: UpperHex,
T: UpperHex,
impl<C> Saturate for Alpha<C, <C as Saturate>::Scalar> where
C: Saturate,
[src]
C: Saturate,
type Scalar = <C as Saturate>::Scalar
The type of the (de)saturation factor.
fn saturate(
&self,
factor: <C as Saturate>::Scalar
) -> Alpha<C, <C as Saturate>::Scalar>
[src]
&self,
factor: <C as Saturate>::Scalar
) -> Alpha<C, <C as Saturate>::Scalar>
fn desaturate(&self, factor: Self::Scalar) -> Self
[src]
Decrease the saturation by factor
.
impl<T, C> Sub<T> for Alpha<C, T> where
C: Sub<T>,
T: Sub<T> + Clone,
[src]
C: Sub<T>,
T: Sub<T> + Clone,
type Output = Alpha<<C as Sub<T>>::Output, <T as Sub<T>>::Output>
The resulting type after applying the -
operator.
fn sub(self, c: T) -> <Alpha<C, T> as Sub<T>>::Output
[src]
impl<C, T> Sub<Alpha<C, T>> for Alpha<C, T> where
C: Sub<C>,
T: Float,
[src]
C: Sub<C>,
T: Float,
type Output = Alpha<<C as Sub<C>>::Output, <T as Sub<T>>::Output>
The resulting type after applying the -
operator.
fn sub(self, other: Alpha<C, T>) -> <Alpha<C, T> as Sub<Alpha<C, T>>>::Output
[src]
impl<T, C> Mul<T> for Alpha<C, T> where
C: Mul<T>,
T: Mul<T> + Clone,
[src]
C: Mul<T>,
T: Mul<T> + Clone,
type Output = Alpha<<C as Mul<T>>::Output, <T as Mul<T>>::Output>
The resulting type after applying the *
operator.
fn mul(self, c: T) -> <Alpha<C, T> as Mul<T>>::Output
[src]
impl<C, T> Mul<Alpha<C, T>> for Alpha<C, T> where
C: Mul<C>,
T: Float,
[src]
C: Mul<C>,
T: Float,
type Output = Alpha<<C as Mul<C>>::Output, <T as Mul<T>>::Output>
The resulting type after applying the *
operator.
fn mul(self, other: Alpha<C, T>) -> <Alpha<C, T> as Mul<Alpha<C, T>>>::Output
[src]
impl<C> Mix for Alpha<C, <C as Mix>::Scalar> where
C: Mix,
[src]
C: Mix,
type Scalar = <C as Mix>::Scalar
The type of the mixing factor.
fn mix(
&self,
other: &Alpha<C, <C as Mix>::Scalar>,
factor: <C as Mix>::Scalar
) -> Alpha<C, <C as Mix>::Scalar>
[src]
&self,
other: &Alpha<C, <C as Mix>::Scalar>,
factor: <C as Mix>::Scalar
) -> Alpha<C, <C as Mix>::Scalar>
impl<S, T, A> Into<(RgbHue<T>, T, T, A)> for Alpha<Hsl<S, T>, A> where
A: Component,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
S: RgbSpace,
T: Component + Float,
impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Lab<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
impl<S, T, A> Into<(RgbHue<T>, T, T, A)> for Alpha<Hsv<S, T>, A> where
A: Component,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
S: RgbSpace,
T: Component + Float,
impl<S, T, A> Into<(RgbHue<T>, T, T, A)> for Alpha<Hwb<S, T>, A> where
A: Component,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
S: RgbSpace,
T: Component + Float,
impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
impl<S, T, A> Into<(T, T, T, A)> for Alpha<Rgb<S, T>, A> where
A: Component,
S: RgbStandard,
T: Component,
[src]
A: Component,
S: RgbStandard,
T: Component,
impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
impl<S, T, A> Into<(T, A)> for Alpha<Luma<S, T>, A> where
A: Component,
S: LumaStandard,
T: Component,
[src]
A: Component,
S: LumaStandard,
T: Component,
impl<Wp, T, A> Into<(T, T, LabHue<T>, A)> for Alpha<Lch<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
impl<C, T> Div<Alpha<C, T>> for Alpha<C, T> where
C: Div<C>,
T: Float,
[src]
C: Div<C>,
T: Float,
type Output = Alpha<<C as Div<C>>::Output, <T as Div<T>>::Output>
The resulting type after applying the /
operator.
fn div(self, other: Alpha<C, T>) -> <Alpha<C, T> as Div<Alpha<C, T>>>::Output
[src]
impl<T, C> Div<T> for Alpha<C, T> where
C: Div<T>,
T: Div<T> + Clone,
[src]
C: Div<T>,
T: Div<T> + Clone,
type Output = Alpha<<C as Div<T>>::Output, <T as Div<T>>::Output>
The resulting type after applying the /
operator.
fn div(self, c: T) -> <Alpha<C, T> as Div<T>>::Output
[src]
impl<C, T> ApproxEq for Alpha<C, T> where
C: ApproxEq<Epsilon = <T as ApproxEq>::Epsilon>,
T: ApproxEq,
<T as ApproxEq>::Epsilon: Clone,
[src]
C: ApproxEq<Epsilon = <T as ApproxEq>::Epsilon>,
T: ApproxEq,
<T as ApproxEq>::Epsilon: Clone,
type Epsilon = <T as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> <Alpha<C, T> as ApproxEq>::Epsilon
[src]
fn default_max_relative() -> <Alpha<C, T> as ApproxEq>::Epsilon
[src]
fn default_max_ulps() -> u32
[src]
fn relative_eq(
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_relative: <Alpha<C, T> as ApproxEq>::Epsilon
) -> bool
[src]
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_relative: <Alpha<C, T> as ApproxEq>::Epsilon
) -> bool
fn ulps_eq(
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
[src]
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
The inverse of ApproxEq::ulps_eq
.
impl<C, T, P> AsRef<P> for Alpha<C, T> where
C: Pixel<T>,
P: RawPixel<T> + ?Sized,
[src]
C: Pixel<T>,
P: RawPixel<T> + ?Sized,
impl<C, T> Debug for Alpha<C, T> where
C: Debug,
T: Debug,
[src]
C: Debug,
T: Debug,
impl<C, T> LowerHex for Alpha<C, T> where
C: LowerHex,
T: LowerHex,
[src]
C: LowerHex,
T: LowerHex,
impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T> From<Lab<Wp, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Hsl<S, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
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>,
[src]
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hsl<S, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T> From<Lab<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Lab<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
[src]
impl<S, T> From<Yxy<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Hwb<<S as RgbStandard>::Space, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Alpha<Hwb<<S as RgbStandard>::Space, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T> From<Lab<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
[src]
color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(
color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
[src]
color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
impl<S, T> From<Alpha<Hsv<S, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<C, T> From<PreAlpha<C, T>> for Alpha<C, T> where
C: ComponentWise<Scalar = T>,
T: Float,
[src]
C: ComponentWise<Scalar = T>,
T: Float,
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(
color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
[src]
color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
impl<S, T> From<Alpha<Color<S, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Hsv<S, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Color<<S as RgbStandard>::Space, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hsl<S, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Lch<Wp, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Lch<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
impl<S, T, _S> From<Alpha<Hwb<_S, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hsv<S, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Hsv<<S as RgbStandard>::Space, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<S, T> From<Xyz<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
[src]
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Alpha<Hsv<_S, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Hsl<_S, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<Wp, T> From<Lab<Wp, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Hwb<<S as RgbStandard>::Space, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
[src]
impl<S, T> From<Color<S, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Yxy<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Color<_S, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hwb<S, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Yxy<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<Wp, T> From<Lch<Wp, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Color<<S as RgbStandard>::Space, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<S, T> From<Alpha<Color<S, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Color<S, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T, _S> From<Color<_S, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<Wp, T> From<Lch<Wp, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Lab<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T, A> From<(T, T, T, A)> for Alpha<Rgb<S, T>, A> where
A: Component,
S: RgbStandard,
T: Component,
[src]
A: Component,
S: RgbStandard,
T: Component,
impl<Wp, T> From<Yxy<Wp, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Hwb<S, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T, H, A> From<(H, T, T, A)> for Alpha<Hwb<S, T>, A> where
A: Component,
H: Into<RgbHue<T>>,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
H: Into<RgbHue<T>>,
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Hwb<S, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Hsv<S, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Lch<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Lch<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hwb<S, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
impl<Wp, T> From<Xyz<Wp, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Xyz<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Xyz<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
[src]
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Lch<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Lch<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
[src]
impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<C, T> From<C> for Alpha<C, T> where
T: Component,
[src]
T: Component,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hsl<S, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Alpha<Color<S, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: 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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: 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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<S, T, _S> From<Alpha<Hsl<_S, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<Wp, T, H, A> From<(T, T, H, A)> for Alpha<Lch<Wp, T>, A> where
A: Component,
H: Into<LabHue<T>>,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
H: Into<LabHue<T>>,
T: Component + Float,
Wp: WhitePoint,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == <S as LumaStandard>::WhitePoint,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == <S as LumaStandard>::WhitePoint,
impl<Wp, T> From<Xyz<Wp, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Lab<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
[src]
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<Wp, T, _S> From<Color<_S, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T, H, A> From<(H, T, T, A)> for Alpha<Hsl<S, T>, A> where
A: Component,
H: Into<RgbHue<T>>,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
H: Into<RgbHue<T>>,
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Hsl<<S as RgbStandard>::Space, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Color<_S, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>
[src]
impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T> From<Lab<Wp, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Alpha<Hsv<<S as RgbStandard>::Space, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Hsl<S, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, A> From<(T, A)> for Alpha<Luma<S, T>, A> where
A: Component,
S: LumaStandard,
T: Component,
[src]
A: Component,
S: LumaStandard,
T: Component,
impl<S, T> From<Alpha<Hwb<S, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Hsl<S, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Hwb<S, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Color<S, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Hsv<_S, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T> From<Alpha<Hsv<<S as RgbStandard>::Space, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T, _S> From<Color<_S, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Luma<Linear<<S as RgbSpace>::WhitePoint>, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
fn from(
color: Alpha<Luma<Linear<<S as RgbSpace>::WhitePoint>, T>, T>
) -> Alpha<Color<S, T>, T>
[src]
color: Alpha<Luma<Linear<<S as RgbSpace>::WhitePoint>, T>, T>
) -> Alpha<Color<S, T>, T>
impl<S, T, _S> From<Alpha<Color<_S, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Hsl<<S as RgbStandard>::Space, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<S, T> From<Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
[src]
color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
impl<S, T, _S> From<Alpha<Color<_S, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>
) -> Alpha<Rgb<S, T>, T>
impl<Wp, T> From<Yxy<Wp, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Hwb<S, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Hwb<_S, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, H, A> From<(H, T, T, A)> for Alpha<Hsv<S, T>, A> where
A: Component,
H: Into<RgbHue<T>>,
S: RgbSpace,
T: Component + Float,
[src]
A: Component,
H: Into<RgbHue<T>>,
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
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>,
[src]
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hsl<S, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T> From<Yxy<Wp, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(
color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
[src]
color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
impl<S, T> From<Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
[src]
color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<S, T> From<Alpha<Hwb<S, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<S, T> From<Alpha<Color<<S as RgbStandard>::Space, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T, _S> From<Alpha<Hsl<_S, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Color<S, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Color<S, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Xyz<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<S, T> From<Alpha<Rgb<Linear<S>, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
[src]
color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Rgb<S, T>
impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(
color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
[src]
color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>
) -> Alpha<Luma<S, T>, T>
impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Alpha<Hwb<_S, T>, T>> for Luma<S, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Lab<Wp, T>, A> where
A: Component,
T: Component + Float,
Wp: WhitePoint,
[src]
A: Component,
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Hsv<S, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hsv<S, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Yxy<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
[src]
S: LumaStandard,
T: Component + Float,
fn from(color: Yxy<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>
[src]
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
_S: RgbStandard<Space = <S as RgbStandard>::Space>,
[src]
S: RgbStandard,
T: Component + Float,
_S: RgbStandard<Space = <S as RgbStandard>::Space>,
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Lab<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T, _S> From<Luma<_S, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Hsl<S, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Xyz<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == <S as LumaStandard>::WhitePoint,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == <S as LumaStandard>::WhitePoint,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Luma<_S, T>, T>> for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
[src]
S: RgbSpace,
T: Component + Float,
_S: LumaStandard<WhitePoint = <S as RgbSpace>::WhitePoint>,
impl<S, T> From<Alpha<Luma<Linear<<S as RgbSpace>::WhitePoint>, T>, T>> for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> From<Alpha<Hsl<S, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == <S as LumaStandard>::WhitePoint,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == <S as LumaStandard>::WhitePoint,
impl<Wp, T, _S> From<Alpha<Color<_S, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
[src]
S: RgbSpace,
T: Component + Float,
_S: RgbStandard<Space = S>,
impl<S, T> From<Alpha<Hsv<S, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Hwb<S, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
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>,
[src]
S: RgbStandard,
T: Component + Float,
_S: LumaStandard<WhitePoint = <<S as RgbStandard>::Space as RgbSpace>::WhitePoint>,
impl<S, T, _S> From<Alpha<Hsv<_S, T>, T>> for Alpha<Luma<S, T>, T> where
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
[src]
S: LumaStandard,
T: Component + Float,
_S: RgbSpace<WhitePoint = <S as LumaStandard>::WhitePoint>,
impl<S, T> From<Alpha<Rgb<Linear<S>, T>, T>> for Alpha<Color<S, T>, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Hsv<S, T>> for Alpha<Hsl<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<S, T> From<Alpha<Hsl<<S as RgbStandard>::Space, T>, T>> for Rgb<S, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Xyz<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Xyz<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
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,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbStandard,
<_S as RgbStandard>::Space: RgbSpace,
<<_S as RgbStandard>::Space as RgbSpace>::WhitePoint == Wp,
impl<C, T> From<Alpha<C, T>> for PreAlpha<C, T> where
C: ComponentWise<Scalar = T>,
T: Float,
[src]
C: ComponentWise<Scalar = T>,
T: Float,
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<S, T> From<Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Alpha<Lch<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Color<S, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: RgbSpace<WhitePoint = Wp>,
impl<Wp, T> From<Xyz<Wp, T>> for Alpha<Yxy<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> From<Alpha<Hsv<S, T>, T>> for Alpha<Hwb<S, T>, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Yxy<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,
impl<S, T> From<Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>> for Alpha<Rgb<S, T>, T> where
S: RgbStandard,
T: Component + Float,
[src]
S: RgbStandard,
T: Component + Float,
fn from(
color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
[src]
color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T>
) -> Alpha<Rgb<S, T>, T>
impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Alpha<Lab<Wp, T>, T> where
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
[src]
T: Component + Float,
Wp: WhitePoint,
_S: LumaStandard<WhitePoint = Wp>,
impl<C> Shade for Alpha<C, <C as Shade>::Scalar> where
C: Shade,
[src]
C: Shade,
type Scalar = <C as Shade>::Scalar
The type of the lighten/darken amount.
fn lighten(
&self,
amount: <C as Shade>::Scalar
) -> Alpha<C, <C as Shade>::Scalar>
[src]
&self,
amount: <C as Shade>::Scalar
) -> Alpha<C, <C as Shade>::Scalar>
fn darken(&self, amount: Self::Scalar) -> Self
[src]
Darken the color by amount
.
impl<C, T> DerefMut for Alpha<C, T>
[src]
impl<C, T> Deref for Alpha<C, T>
[src]
impl<C, T> Serialize for Alpha<C, T> where
C: Serialize,
T: Serialize,
[src]
C: Serialize,
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<C, T> GetHue for Alpha<C, T> where
C: GetHue,
[src]
C: GetHue,
type Hue = <C as GetHue>::Hue
The kind of hue unit this color space uses. Read more
fn get_hue(&self) -> Option<<C as GetHue>::Hue>
[src]
impl<C, T> ComponentWise for Alpha<C, T> where
C: ComponentWise<Scalar = T>,
T: Clone,
[src]
C: ComponentWise<Scalar = T>,
T: Clone,
type Scalar = T
The scalar type for color components.
fn component_wise<F>(&self, other: &Alpha<C, T>, f: F) -> Alpha<C, T> where
F: FnMut(T, T) -> T,
[src]
F: FnMut(T, T) -> T,
fn component_wise_self<F>(&self, f: F) -> Alpha<C, T> where
F: FnMut(T) -> T,
[src]
F: FnMut(T) -> T,
impl<C, T> Hue for Alpha<C, T> where
C: Hue,
T: Clone,
[src]
C: Hue,
T: Clone,
fn with_hue<H>(&self, hue: H) -> Alpha<C, T> where
H: Into<<C as GetHue>::Hue>,
[src]
H: Into<<C as GetHue>::Hue>,
fn shift_hue<H>(&self, amount: H) -> Alpha<C, T> where
H: Into<<C as GetHue>::Hue>,
[src]
H: Into<<C as GetHue>::Hue>,
impl<S, T, B> From<Alpha<Rgb<S, T>, T>> for Pixel<Rgba, B, Srgb> where
B: ChannelSize,
S: RgbStandard<Space = Srgb>,
T: Component,
Srgb: ChannelRepr<B>,
<Srgb as ChannelRepr<B>>::Repr: Component,
[src]
B: ChannelSize,
S: RgbStandard<Space = Srgb>,
T: Component,
Srgb: ChannelRepr<B>,
<Srgb as ChannelRepr<B>>::Repr: Component,
impl<S, T, B> From<Alpha<Rgb<S, T>, T>> for Pixel<Rgba, B, Float> where
B: ChannelSize,
S: RgbStandard<Space = Srgb>,
T: Component,
Float: ChannelRepr<B>,
<Float as ChannelRepr<B>>::Repr: Component,
[src]
B: ChannelSize,
S: RgbStandard<Space = Srgb>,
T: Component,
Float: ChannelRepr<B>,
<Float as ChannelRepr<B>>::Repr: Component,
impl<S, T, B> From<Alpha<Luma<S, T>, T>> for Pixel<Rg, B, Srgb> where
B: ChannelSize,
S: LumaStandard<WhitePoint = D65>,
T: Component,
Srgb: ChannelRepr<B>,
<Srgb as ChannelRepr<B>>::Repr: Component,
[src]
B: ChannelSize,
S: LumaStandard<WhitePoint = D65>,
T: Component,
Srgb: ChannelRepr<B>,
<Srgb as ChannelRepr<B>>::Repr: Component,
impl<S, T, B> From<Alpha<Luma<S, T>, T>> for Pixel<Rg, B, Float> where
B: ChannelSize,
S: LumaStandard<WhitePoint = D65>,
T: Component,
Float: ChannelRepr<B>,
<Float as ChannelRepr<B>>::Repr: Component,
[src]
B: ChannelSize,
S: LumaStandard<WhitePoint = D65>,
T: Component,
Float: ChannelRepr<B>,
<Float as ChannelRepr<B>>::Repr: Component,
impl<S, T, B> From<Alpha<Rgb<S, T>, T>> for Pixel<Rgba, B, Unorm> where
B: ChannelSize,
S: RgbStandard<Space = Srgb>,
T: Component,
Unorm: ChannelRepr<B>,
<Unorm as ChannelRepr<B>>::Repr: Component,
[src]
B: ChannelSize,
S: RgbStandard<Space = Srgb>,
T: Component,
Unorm: ChannelRepr<B>,
<Unorm as ChannelRepr<B>>::Repr: Component,
impl<S, T, B> From<Alpha<Luma<S, T>, T>> for Pixel<Rg, B, Unorm> where
B: ChannelSize,
S: LumaStandard<WhitePoint = D65>,
T: Component,
Unorm: ChannelRepr<B>,
<Unorm as ChannelRepr<B>>::Repr: Component,
[src]
B: ChannelSize,
S: LumaStandard<WhitePoint = D65>,
T: Component,
Unorm: ChannelRepr<B>,
<Unorm as ChannelRepr<B>>::Repr: Component,
impl AsRef<Alpha<Rgb<Srgb, f32>, f32>> for AmbientColor
[src]
Auto Trait Implementations
impl<C, T> Unpin for Alpha<C, T> where
C: Unpin,
T: Unpin,
C: Unpin,
T: Unpin,
impl<C, T> Sync for Alpha<C, T> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<C, T> Send for Alpha<C, T> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<C, T> UnwindSafe for Alpha<C, T> where
C: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
impl<C, T> RefUnwindSafe for Alpha<C, T> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> MemoryUsage for T where
T: Deref + Debug,
<T as Deref>::Target: MemoryUsage,
[src]
T: Deref + Debug,
<T as Deref>::Target: MemoryUsage,
fn properties_required(&self) -> Properties
[src]
fn memory_fitness(&self, properties: Properties) -> u32
[src]
fn allocator_fitness(&self, kind: Kind) -> u32
[src]
impl<T> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
T: Copy + PartialEq<T> + Any + Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
Calls try_default
and panics on an error case.
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> Config for T where
T: Deserialize<'a> + Serialize + Default,
[src]
T: Deserialize<'a> + Serialize + Default,
fn load<P>(path: P) -> T where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
fn load_no_fallback<P>(path: P) -> Result<T, ConfigError> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
fn load_bytes(bytes: &[u8]) -> Result<T, ConfigError>
[src]
fn write<P>(&self, path: P) -> Result<(), ConfigError> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,