Struct nannou::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<T, A> Alpha<Hsl<Srgb, T>, A>
where T: Component + Float, A: Component,

Hsla implementations.

source

pub fn new<H>( hue: H, saturation: T, lightness: T, alpha: A ) -> Alpha<Hsl<Srgb, T>, A>
where H: Into<RgbHue<T>>,

HSL and transparency for linear sRGB.

source§

impl<S, T, A> Alpha<Hsl<S, T>, A>
where T: Component + Float, A: Component, S: RgbSpace,

Hsla implementations.

source

pub fn with_wp<H>( hue: H, saturation: T, lightness: T, alpha: A ) -> Alpha<Hsl<S, T>, A>
where H: Into<RgbHue<T>>,

Linear HSL and transparency.

source

pub fn into_components(self) -> (RgbHue<T>, T, T, A)

Convert to a (hue, saturation, lightness, alpha) tuple.

source

pub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hsl<S, T>, A>
where H: Into<RgbHue<T>>,

Convert from a (hue, saturation, lightness, alpha) tuple.

source§

impl<T, A> Alpha<Hsv<Srgb, T>, A>
where T: Component + Float, A: Component,

Hsva implementations.

source

pub fn new<H>( hue: H, saturation: T, value: T, alpha: A ) -> Alpha<Hsv<Srgb, T>, A>
where H: Into<RgbHue<T>>,

HSV and transparency for linear sRGB.

source§

impl<S, T, A> Alpha<Hsv<S, T>, A>
where T: Component + Float, A: Component, S: RgbSpace,

Hsva implementations.

source

pub fn with_wp<H>( hue: H, saturation: T, value: T, alpha: A ) -> Alpha<Hsv<S, T>, A>
where H: Into<RgbHue<T>>,

Linear HSV and transparency.

source

pub fn into_components(self) -> (RgbHue<T>, T, T, A)

Convert to a (hue, saturation, value, alpha) tuple.

source

pub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hsv<S, T>, A>
where H: Into<RgbHue<T>>,

Convert from a (hue, saturation, value, alpha) tuple.

source§

impl<T, A> Alpha<Hwb<Srgb, T>, A>
where T: Component + Float, A: Component,

Hwba implementations.

source

pub fn new<H>( hue: H, whiteness: T, blackness: T, alpha: A ) -> Alpha<Hwb<Srgb, T>, A>
where H: Into<RgbHue<T>>,

HWB and transparency for linear sRGB.

source§

impl<S, T, A> Alpha<Hwb<S, T>, A>
where T: Component + Float, A: Component, S: RgbSpace,

Hwba implementations.

source

pub fn with_wp<H>( hue: H, whiteness: T, blackness: T, alpha: A ) -> Alpha<Hwb<S, T>, A>
where H: Into<RgbHue<T>>,

Linear HWB and transparency.

source

pub fn into_components(self) -> (RgbHue<T>, T, T, A)

Convert to a (hue, whiteness, blackness, alpha) tuple.

source

pub fn from_components<H>(_: (H, T, T, A)) -> Alpha<Hwb<S, T>, A>
where H: Into<RgbHue<T>>,

Convert from a (hue, whiteness, blackness, alpha) tuple.

source§

impl<T, A> Alpha<Lab<D65, T>, A>
where T: Component + Float, A: Component,

Laba implementations.

source

pub fn new(l: T, a: T, b: T, alpha: A) -> Alpha<Lab<D65, T>, A>

CIE L*a*b* and transparency and white point D65.

source§

impl<Wp, T, A> Alpha<Lab<Wp, T>, A>
where T: Component + Float, A: Component, Wp: WhitePoint,

Laba implementations.

source

pub fn with_wp(l: T, a: T, b: T, alpha: A) -> Alpha<Lab<Wp, T>, A>

CIE L*a*b* and transparency.

source

pub fn into_components(self) -> (T, T, T, A)

Convert to a (L\*, a\*, b\*, alpha) tuple.

source

pub fn from_components(_: (T, T, T, A)) -> Alpha<Lab<Wp, T>, A>

Convert from a (L\*, a\*, b\*, alpha) tuple.

source§

impl<T, A> Alpha<Lch<D65, T>, A>
where T: Component + Float, A: Component,

Lcha implementations.

source

pub fn new<H>(l: T, chroma: T, hue: H, alpha: A) -> Alpha<Lch<D65, T>, A>
where H: Into<LabHue<T>>,

CIE L*C*h° and transparency with white point D65.

source§

impl<Wp, T, A> Alpha<Lch<Wp, T>, A>
where T: Component + Float, A: Component, Wp: WhitePoint,

Lcha implementations.

source

pub fn with_wp<H>(l: T, chroma: T, hue: H, alpha: A) -> Alpha<Lch<Wp, T>, A>
where H: Into<LabHue<T>>,

CIE L*C*h° and transparency.

source

pub fn into_components(self) -> (T, T, LabHue<T>, A)

Convert to a (L\*, C\*, h°, alpha) tuple.

source

pub fn from_components<H>(_: (T, T, H, A)) -> Alpha<Lch<Wp, T>, A>
where H: Into<LabHue<T>>,

Convert from a (L\*, C\*, h°, alpha) tuple.

source§

impl<S, T, A> Alpha<Luma<S, T>, A>
where T: Component, A: Component, S: LumaStandard,

Lumaa implementations.

source

pub fn new(luma: T, alpha: A) -> Alpha<Luma<S, T>, A>

Create a luminance color with transparency.

source

pub fn into_format<U, B>(self) -> Alpha<Luma<S, U>, B>
where U: Component, B: Component,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Luma<S, U>, B>) -> Alpha<Luma<S, T>, A>
where U: Component, B: Component,

Convert from another component type.

source

pub fn into_components(self) -> (T, A)

Convert to a (luma, alpha) tuple.

source

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>

Lumaa implementations.

source

pub fn into_linear( self ) -> Alpha<Luma<Linear<<S as LumaStandard>::WhitePoint>, T>, A>

Convert the color to linear luminance with transparency.

source

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.

source

pub fn into_encoding<St>(self) -> Alpha<Luma<St, T>, A>
where St: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,

Convert the color to a different encoding with transparency.

source

pub fn from_encoding<St>(color: Alpha<Luma<St, T>, A>) -> Alpha<Luma<S, T>, A>
where St: LumaStandard<WhitePoint = <S as LumaStandard>::WhitePoint>,

Convert luminance from a different encoding with transparency.

source§

impl<S, T, A> Alpha<Rgb<S, T>, A>
where S: RgbStandard, T: Component, A: Component,

Rgba implementations.

source

pub fn new(red: T, green: T, blue: T, alpha: A) -> Alpha<Rgb<S, T>, A>

Nonlinear RGB.

source

pub fn into_format<U, B>(self) -> Alpha<Rgb<S, U>, B>
where U: Component, B: Component,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Rgb<S, U>, B>) -> Alpha<Rgb<S, T>, A>
where U: Component, B: Component,

Convert from another component type.

source

pub fn into_components(self) -> (T, T, T, A)

Convert to a (red, green, blue, alpha) tuple.

source

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>
where S: RgbStandard, T: Component + Float, A: Component,

Rgba implementations.

source

pub fn into_linear(self) -> Alpha<Rgb<Linear<<S as RgbStandard>::Space>, T>, A>

Convert the color to linear RGB with transparency.

source

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.

source

pub fn into_encoding<St>(self) -> Alpha<Rgb<St, T>, A>
where St: RgbStandard<Space = <S as RgbStandard>::Space>,

Convert the color to a different encoding with transparency.

source

pub fn from_encoding<St>(color: Alpha<Rgb<St, T>, A>) -> Alpha<Rgb<S, T>, A>
where St: RgbStandard<Space = <S as RgbStandard>::Space>,

Convert RGB from a different encoding with transparency.

source§

impl<T, A> Alpha<Xyz<D65, T>, A>
where T: Component + Float, A: Component,

Xyza implementations.

source

pub fn new(x: T, y: T, luma: T, alpha: A) -> Alpha<Xyz<D65, T>, A>

CIE Yxy and transparency with white point D65.

source§

impl<Wp, T, A> Alpha<Xyz<Wp, T>, A>
where T: Component + Float, A: Component, Wp: WhitePoint,

Xyza implementations.

source

pub fn with_wp(x: T, y: T, z: T, alpha: A) -> Alpha<Xyz<Wp, T>, A>

CIE XYZ and transparency.

source

pub fn into_components(self) -> (T, T, T, A)

Convert to a (X, Y, Z, alpha) tuple.

source

pub fn from_components(_: (T, T, T, A)) -> Alpha<Xyz<Wp, T>, A>

Convert from a (X, Y, Z, alpha) tuple.

source§

impl<T, A> Alpha<Yxy<D65, T>, A>
where T: Component + Float, A: Component,

Yxya implementations.

source

pub fn new(x: T, y: T, luma: T, alpha: A) -> Alpha<Yxy<D65, T>, A>

CIE Yxy and transparency with white point D65.

source§

impl<Wp, T, A> Alpha<Yxy<Wp, T>, A>
where T: Component + Float, A: Component, Wp: WhitePoint,

Yxya implementations.

source

pub fn with_wp(x: T, y: T, luma: T, alpha: A) -> Alpha<Yxy<Wp, T>, A>

CIE Yxy and transparency.

source

pub fn into_components(self) -> (T, T, T, A)

Convert to a (x, y, luma), a.k.a. (x, y, Y) tuple.

source

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,

§

type Epsilon = <T as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
source§

fn default_epsilon() -> <Alpha<C, T> as AbsDiffEq>::Epsilon

The default tolerance to use when testing values that are close together. Read more
source§

fn abs_diff_eq( &self, other: &Alpha<C, T>, epsilon: <T as AbsDiffEq>::Epsilon ) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
§

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool

The inverse of ApproxEq::abs_diff_eq.
source§

impl<T, C> Add<T> for Alpha<C, T>
where T: Add + Clone, C: Add<T>,

§

type Output = Alpha<<C as Add<T>>::Output, <T as Add>::Output>

The resulting type after applying the + operator.
source§

fn add(self, c: T) -> <Alpha<C, T> as Add<T>>::Output

Performs the + operation. Read more
source§

impl<C, T> Add for Alpha<C, T>
where C: Add, T: Float,

§

type Output = Alpha<<C as Add>::Output, <T as Add>::Output>

The resulting type after applying the + operator.
source§

fn add(self, other: Alpha<C, T>) -> <Alpha<C, T> as Add>::Output

Performs the + operation. Read more
source§

impl<T, C> AddAssign<T> for Alpha<C, T>
where T: AddAssign + Copy, C: AddAssign<T>,

source§

fn add_assign(&mut self, c: T)

Performs the += operation. Read more
source§

impl<C, T> AddAssign for Alpha<C, T>
where C: AddAssign, T: Float + AddAssign,

source§

fn add_assign(&mut self, other: Alpha<C, T>)

Performs the += operation. Read more
source§

impl<C, T, P> AsMut<P> for Alpha<C, T>
where C: Pixel<T>, P: RawPixel<T> + ?Sized,

source§

fn as_mut(&mut self) -> &mut P

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

impl<C, T, P> AsRef<P> for Alpha<C, T>
where C: Pixel<T>, P: RawPixel<T> + ?Sized,

source§

fn as_ref(&self) -> &P

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

impl<C, T> Blend for Alpha<C, T>
where C: Blend, T: Float, <C as Blend>::Color: ComponentWise<Scalar = T>, Alpha<C, T>: Into<Alpha<<C as Blend>::Color, T>> + From<Alpha<<C as Blend>::Color, T>>,

§

type Color = <C as Blend>::Color

The core color type. Typically Self for color types without alpha.
source§

fn into_premultiplied(self) -> PreAlpha<<C as Blend>::Color, T>

Convert the color to premultiplied alpha.
source§

fn from_premultiplied(color: PreAlpha<<C as Blend>::Color, T>) -> Alpha<C, T>

Convert the color from premultiplied alpha.
source§

fn blend<F>(self, destination: Self, blend_function: F) -> Self
where 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
source§

fn over(self, other: Self) -> Self

Place self over other. This is the good old common alpha composition equation.
source§

fn inside(self, other: Self) -> Self

Results in the parts of self that overlaps the visible parts of other.
source§

fn outside(self, other: Self) -> Self

Results in the parts of self that lies outside the visible parts of other.
source§

fn atop(self, other: Self) -> Self

Place self over only the visible parts of other.
source§

fn xor(self, other: Self) -> Self

Results in either self or other, where they do not overlap.
source§

fn plus(self, other: Self) -> Self

Add 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

Multiply 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

Make a color which is at least as light as self or other.
source§

fn overlay(self, other: Self) -> Self

Multiply self or other if other is dark, or screen them if other is light. This results in an S curve.
source§

fn darken(self, other: Self) -> Self

Return the darkest parts of self and other.
source§

fn lighten(self, other: Self) -> Self

Return the lightest parts of self and other.
source§

fn dodge(self, other: Self) -> Self

Lighten other to reflect self. Results in other if self is black.
source§

fn burn(self, other: Self) -> Self

Darken other to reflect self. Results in other if self is white.
source§

fn hard_light(self, other: Self) -> Self

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

fn soft_light(self, other: Self) -> Self

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

fn difference(self, other: Self) -> Self

Return the absolute difference between self and other. It’s basically abs(self - other), but regulated by the alpha component.
source§

fn exclusion(self, other: Self) -> Self

Similar to difference, but appears to result in a lower contrast. other is inverted if self is white, and preserved if self is black.
source§

impl<C, T> Clone for Alpha<C, T>
where C: Clone, T: Clone,

source§

fn clone(&self) -> Alpha<C, T>

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

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

Performs copy-assignment from source. Read more
source§

impl<C, T> ComponentWise for Alpha<C, T>
where C: ComponentWise<Scalar = T>, T: Clone,

§

type Scalar = T

The scalar type for color components.
source§

fn component_wise<F>(&self, other: &Alpha<C, T>, f: F) -> Alpha<C, T>
where F: FnMut(T, T) -> T,

Perform a binary operation on this and an other color.
source§

fn component_wise_self<F>(&self, f: F) -> Alpha<C, T>
where F: FnMut(T) -> T,

Perform a unary operation on this color.
source§

impl<C, T> Debug for Alpha<C, T>
where C: Debug, T: Debug,

source§

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

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

impl<C, T> Default for Alpha<C, T>
where C: Default, T: Component,

source§

fn default() -> Alpha<C, T>

Returns the “default value” for a type. Read more
source§

impl<C, T> Deref for Alpha<C, T>

§

type Target = C

The resulting type after dereferencing.
source§

fn deref(&self) -> &C

Dereferences the value.
source§

impl<C, T> DerefMut for Alpha<C, T>

source§

fn deref_mut(&mut self) -> &mut C

Mutably dereferences the value.
source§

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

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T, C> Div<T> for Alpha<C, T>
where T: Div + Clone, C: Div<T>,

§

type Output = Alpha<<C as Div<T>>::Output, <T as Div>::Output>

The resulting type after applying the / operator.
source§

fn div(self, c: T) -> <Alpha<C, T> as Div<T>>::Output

Performs the / operation. Read more
source§

impl<C, T> Div for Alpha<C, T>
where C: Div, T: Float,

§

type Output = Alpha<<C as Div>::Output, <T as Div>::Output>

The resulting type after applying the / operator.
source§

fn div(self, other: Alpha<C, T>) -> <Alpha<C, T> as Div>::Output

Performs the / operation. Read more
source§

impl<T, C> DivAssign<T> for Alpha<C, T>
where T: DivAssign + Copy, C: DivAssign<T>,

source§

fn div_assign(&mut self, c: T)

Performs the /= operation. Read more
source§

impl<C, T> DivAssign for Alpha<C, T>
where C: DivAssign, T: Float + DivAssign,

source§

fn div_assign(&mut self, other: Alpha<C, T>)

Performs the /= operation. Read more
source§

impl<S, T, H, A> From<(H, T, T, A)> for Alpha<Hsl<S, T>, A>
where S: RgbSpace, T: Component + Float, H: Into<RgbHue<T>>, A: Component,

source§

fn from(components: (H, T, T, A)) -> Alpha<Hsl<S, T>, A>

Converts to this type from the input type.
source§

impl<S, T, H, A> From<(H, T, T, A)> for Alpha<Hsv<S, T>, A>
where S: RgbSpace, T: Component + Float, H: Into<RgbHue<T>>, A: Component,

source§

fn from(components: (H, T, T, A)) -> Alpha<Hsv<S, T>, A>

Converts to this type from the input type.
source§

impl<S, T, H, A> From<(H, T, T, A)> for Alpha<Hwb<S, T>, A>
where S: RgbSpace, T: Component + Float, H: Into<RgbHue<T>>, A: Component,

source§

fn from(components: (H, T, T, A)) -> Alpha<Hwb<S, T>, A>

Converts to this type from the input type.
source§

impl<S, T, A> From<(T, A)> for Alpha<Luma<S, T>, A>
where S: LumaStandard, T: Component, A: Component,

source§

fn from(components: (T, A)) -> Alpha<Luma<S, T>, A>

Converts to this type from the input type.
source§

impl<Wp, T, H, A> From<(T, T, H, A)> for Alpha<Lch<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, H: Into<LabHue<T>>, A: Component,

source§

fn from(components: (T, T, H, A)) -> Alpha<Lch<Wp, T>, A>

Converts to this type from the input type.
source§

impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Lab<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, A: Component,

source§

fn from(components: (T, T, T, A)) -> Alpha<Lab<Wp, T>, A>

Converts to this type from the input type.
source§

impl<S, T, A> From<(T, T, T, A)> for Alpha<Rgb<S, T>, A>
where S: RgbStandard, T: Component, A: Component,

source§

fn from(components: (T, T, T, A)) -> Alpha<Rgb<S, T>, A>

Converts to this type from the input type.
source§

impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, A: Component,

source§

fn from(components: (T, T, T, A)) -> Alpha<Xyz<Wp, T>, A>

Converts to this type from the input type.
source§

impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, A: Component,

source§

fn from(components: (T, T, T, A)) -> Alpha<Yxy<Wp, T>, A>

Converts to this type from the input type.
source§

impl<C, T> From<Alpha<C, T>> for PreAlpha<C, T>
where C: ComponentWise<Scalar = T>, T: Float,

source§

fn from(color: Alpha<C, T>) -> PreAlpha<C, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsl<<S as RgbStandard>::Space, T>, T>> for Alpha<Rgb<S, T>, T>
where S: RgbStandard, T: Component + Float,

source§

fn from( color: Alpha<Hsl<<S as RgbStandard>::Space, T>, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsl<<S as RgbStandard>::Space, T>, T>> for Rgb<S, T>
where S: RgbStandard, T: Component + Float,

source§

fn from(color: Alpha<Hsl<<S as RgbStandard>::Space, T>, T>) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsl<S, T>, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsl<S, T>, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsl<S, T>, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsl<S, T>, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsl<S, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsl<S, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsl<S, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsl<S, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsl<S, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsl<S, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
source§

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§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsl<_S, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsl<_S, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsv<<S as RgbStandard>::Space, T>, T>> for Alpha<Rgb<S, T>, T>
where S: RgbStandard, T: Component + Float,

source§

fn from( color: Alpha<Hsv<<S as RgbStandard>::Space, T>, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsv<<S as RgbStandard>::Space, T>, T>> for Rgb<S, T>
where S: RgbStandard, T: Component + Float,

source§

fn from(color: Alpha<Hsv<<S as RgbStandard>::Space, T>, T>) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsv<S, T>, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsv<S, T>, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsv<S, T>, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsv<S, T>, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsv<S, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsv<S, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsv<S, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsv<S, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hsv<S, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hsv<S, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hsv<_S, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hsv<_S, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hwb<<S as RgbStandard>::Space, T>, T>> for Alpha<Rgb<S, T>, T>
where S: RgbStandard, T: Component + Float,

source§

fn from( color: Alpha<Hwb<<S as RgbStandard>::Space, T>, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hwb<<S as RgbStandard>::Space, T>, T>> for Rgb<S, T>
where S: RgbStandard, T: Component + Float,

source§

fn from(color: Alpha<Hwb<<S as RgbStandard>::Space, T>, T>) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hwb<S, T>, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hwb<S, T>, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hwb<S, T>, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hwb<S, T>, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hwb<S, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hwb<S, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hwb<S, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hwb<S, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Hwb<S, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Hwb<S, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Hwb<_S, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Alpha<Hwb<_S, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from( color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Alpha<Lab<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Lab<<S as RgbSpace>::WhitePoint, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lab<Wp, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lab<Wp, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lab<Wp, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lab<Wp, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lab<Wp, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lab<Wp, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lab<Wp, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lab<Wp, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from( color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Alpha<Lch<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Lch<<S as RgbSpace>::WhitePoint, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lch<Wp, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lch<Wp, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lch<Wp, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lch<Wp, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lch<Wp, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lch<Wp, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Lch<Wp, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Lch<Wp, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Alpha<Luma<_S, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Alpha<Luma<_S, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Alpha<Rgb<_S, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

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

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Rgb<S, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Alpha<Rgb<_S, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from( color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Alpha<Xyz<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Xyz<<S as RgbSpace>::WhitePoint, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Xyz<Wp, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Xyz<Wp, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Xyz<Wp, T>, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Xyz<Wp, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Xyz<Wp, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Xyz<Wp, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Xyz<Wp, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Xyz<Wp, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Alpha<Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T>, T> ) -> Rgb<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from( color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T> ) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>> for Luma<S, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Alpha<Yxy<<S as LumaStandard>::WhitePoint, T>, T>) -> Luma<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from( color: Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T> ) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Hsl<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsl<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Hsv<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>) -> Hsv<S, T>

Converts to this type from the input type.
source§

impl<S, T> From<Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>> for Hwb<S, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Alpha<Yxy<<S as RgbSpace>::WhitePoint, T>, T>) -> Hwb<S, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Yxy<Wp, T>, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Yxy<Wp, T>, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Yxy<Wp, T>, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Lab<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Yxy<Wp, T>, T>) -> Lab<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Lch<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Yxy<Wp, T>, T>) -> Lch<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Xyz<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Yxy<Wp, T>, T>) -> Xyz<Wp, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Alpha<Yxy<Wp, T>, T>> for Yxy<Wp, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Alpha<Yxy<Wp, T>, T>) -> Yxy<Wp, T>

Converts to this type from the input type.
source§

impl<C, T> From<C> for Alpha<C, T>
where T: Component,

source§

fn from(color: C) -> Alpha<C, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hsl<<S as RgbStandard>::Space, T>> for Alpha<Rgb<S, T>, T>
where S: RgbStandard, T: Component + Float,

source§

fn from(color: Hsl<<S as RgbStandard>::Space, T>) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hsl<S, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Hsl<S, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hsl<S, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Hsl<S, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsl<_S, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsl<_S, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Hsl<_S, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsl<_S, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsl<_S, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsl<_S, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hsv<<S as RgbStandard>::Space, T>> for Alpha<Rgb<S, T>, T>
where S: RgbStandard, T: Component + Float,

source§

fn from(color: Hsv<<S as RgbStandard>::Space, T>) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hsv<S, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Hsv<S, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hsv<S, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Hsv<S, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsv<_S, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsv<_S, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Hsv<_S, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsv<_S, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hsv<_S, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hsv<_S, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hwb<<S as RgbStandard>::Space, T>> for Alpha<Rgb<S, T>, T>
where S: RgbStandard, T: Component + Float,

source§

fn from(color: Hwb<<S as RgbStandard>::Space, T>) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hwb<S, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Hwb<S, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Hwb<S, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Hwb<S, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hwb<_S, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hwb<_S, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Hwb<_S, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hwb<_S, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Hwb<_S, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: RgbSpace<WhitePoint = Wp>,

source§

fn from(color: Hwb<_S, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Lab<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lab<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Lab<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lab<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Lab<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lab<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Lab<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lab<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Lab<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Lab<Wp, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Lab<Wp, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Lab<Wp, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Lab<Wp, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Lab<Wp, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Lab<Wp, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Lch<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lch<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Lch<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lch<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Lch<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lch<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Lch<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Lch<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Lch<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Lch<Wp, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Lch<Wp, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Lch<Wp, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Lch<Wp, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Lch<Wp, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Lch<Wp, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T, _S> From<Luma<_S, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint, _S: LumaStandard<WhitePoint = Wp>,

source§

fn from(color: Luma<_S, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

impl<C, T> From<PreAlpha<C, T>> for Alpha<C, T>
where C: ComponentWise<Scalar = T>, T: Float,

source§

fn from(color: PreAlpha<C, T>) -> Alpha<C, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T, _S> From<Rgb<_S, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace, _S: RgbStandard<Space = S>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
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>,

source§

fn from(color: Rgb<_S, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Xyz<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Xyz<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Xyz<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Xyz<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Xyz<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Xyz<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Xyz<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Xyz<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Xyz<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Xyz<Wp, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Xyz<Wp, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Xyz<Wp, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Xyz<Wp, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Xyz<Wp, T>> for Alpha<Yxy<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Xyz<Wp, T>) -> Alpha<Yxy<Wp, T>, T>

Converts to this type from the input type.
source§

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,

source§

fn from( color: Yxy<<<S as RgbStandard>::Space as RgbSpace>::WhitePoint, T> ) -> Alpha<Rgb<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Yxy<<S as LumaStandard>::WhitePoint, T>> for Alpha<Luma<S, T>, T>
where T: Component + Float, S: LumaStandard,

source§

fn from(color: Yxy<<S as LumaStandard>::WhitePoint, T>) -> Alpha<Luma<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Yxy<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsl<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Yxy<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsl<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Yxy<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hsv<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Yxy<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hsv<S, T>, T>

Converts to this type from the input type.
source§

impl<S, T> From<Yxy<<S as RgbSpace>::WhitePoint, T>> for Alpha<Hwb<S, T>, T>
where T: Component + Float, S: RgbSpace,

source§

fn from(color: Yxy<<S as RgbSpace>::WhitePoint, T>) -> Alpha<Hwb<S, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Yxy<Wp, T>> for Alpha<Lab<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Yxy<Wp, T>) -> Alpha<Lab<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Yxy<Wp, T>> for Alpha<Lch<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Yxy<Wp, T>) -> Alpha<Lch<Wp, T>, T>

Converts to this type from the input type.
source§

impl<Wp, T> From<Yxy<Wp, T>> for Alpha<Xyz<Wp, T>, T>
where T: Component + Float, Wp: WhitePoint,

source§

fn from(color: Yxy<Wp, T>) -> Alpha<Xyz<Wp, T>, T>

Converts to this type from the input type.
source§

impl<C, T> GetHue for Alpha<C, T>
where C: GetHue,

§

type Hue = <C as GetHue>::Hue

The kind of hue unit this color space uses. Read more
source§

fn get_hue(&self) -> Option<<C as GetHue>::Hue>

Calculate a hue if possible. Read more
source§

impl<C, T> Hue for Alpha<C, T>
where C: Hue, T: Clone,

source§

fn with_hue<H>(&self, hue: H) -> Alpha<C, T>
where H: Into<<C as GetHue>::Hue>,

Return a new copy of self, but with a specific hue.
source§

fn shift_hue<H>(&self, amount: H) -> Alpha<C, T>
where H: Into<<C as GetHue>::Hue>,

Return a new copy of self, but with the hue shifted by amount.
source§

impl<S, T, A> Into<(RgbHue<T>, T, T, A)> for Alpha<Hsl<S, T>, A>
where S: RgbSpace, T: Component + Float, A: Component,

source§

fn into(self) -> (RgbHue<T>, T, T, A)

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

impl<S, T, A> Into<(RgbHue<T>, T, T, A)> for Alpha<Hsv<S, T>, A>
where S: RgbSpace, T: Component + Float, A: Component,

source§

fn into(self) -> (RgbHue<T>, T, T, A)

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

impl<S, T, A> Into<(RgbHue<T>, T, T, A)> for Alpha<Hwb<S, T>, A>
where S: RgbSpace, T: Component + Float, A: Component,

source§

fn into(self) -> (RgbHue<T>, T, T, A)

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

impl<S, T, A> Into<(T, A)> for Alpha<Luma<S, T>, A>
where S: LumaStandard, T: Component, A: Component,

source§

fn into(self) -> (T, A)

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

impl<Wp, T, A> Into<(T, T, LabHue<T>, A)> for Alpha<Lch<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, A: Component,

source§

fn into(self) -> (T, T, LabHue<T>, A)

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

impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Lab<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, A: Component,

source§

fn into(self) -> (T, T, T, A)

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

impl<S, T, A> Into<(T, T, T, A)> for Alpha<Rgb<S, T>, A>
where S: RgbStandard, T: Component, A: Component,

source§

fn into(self) -> (T, T, T, A)

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

impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, A: Component,

source§

fn into(self) -> (T, T, T, A)

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

impl<Wp, T, A> Into<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A>
where Wp: WhitePoint, T: Component + Float, A: Component,

source§

fn into(self) -> (T, T, T, A)

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

impl<C, S, T> IntoLinSrgba<S> for Alpha<C, T>
where C: IntoLinSrgba<S>, S: Component, T: Component,

source§

fn into_lin_srgba(self) -> Alpha<Rgb<Linear<Srgb>, S>, S>

Convert self into RGBA.
source§

impl<C, T> Limited for Alpha<C, T>
where C: Limited, T: Component,

source§

fn is_valid(&self) -> bool

Check if the color’s components are within the expected ranges.
source§

fn clamp(&self) -> Alpha<C, T>

Return a new color where the components has been clamped to the nearest valid values.
source§

fn clamp_self(&mut self)

Clamp the color’s components to the nearest valid values.
source§

impl<C, T> LowerHex for Alpha<C, T>
where T: LowerHex, C: LowerHex,

source§

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

Formats the value using the given formatter.
source§

impl<C> Mix for Alpha<C, <C as Mix>::Scalar>
where C: Mix,

§

type Scalar = <C as Mix>::Scalar

The type of the mixing factor.
source§

fn mix( &self, other: &Alpha<C, <C as Mix>::Scalar>, factor: <C as Mix>::Scalar ) -> Alpha<C, <C as Mix>::Scalar>

Mix the color with an other color, by factor. Read more
source§

impl<T, C> Mul<T> for Alpha<C, T>
where T: Mul + Clone, C: Mul<T>,

§

type Output = Alpha<<C as Mul<T>>::Output, <T as Mul>::Output>

The resulting type after applying the * operator.
source§

fn mul(self, c: T) -> <Alpha<C, T> as Mul<T>>::Output

Performs the * operation. Read more
source§

impl<C, T> Mul for Alpha<C, T>
where C: Mul, T: Float,

§

type Output = Alpha<<C as Mul>::Output, <T as Mul>::Output>

The resulting type after applying the * operator.
source§

fn mul(self, other: Alpha<C, T>) -> <Alpha<C, T> as Mul>::Output

Performs the * operation. Read more
source§

impl<T, C> MulAssign<T> for Alpha<C, T>
where T: MulAssign + Copy, C: MulAssign<T>,

source§

fn mul_assign(&mut self, c: T)

Performs the *= operation. Read more
source§

impl<C, T> MulAssign for Alpha<C, T>
where C: MulAssign, T: Float + MulAssign,

source§

fn mul_assign(&mut self, other: Alpha<C, T>)

Performs the *= operation. Read more
source§

impl<C, T> PartialEq for Alpha<C, T>
where C: PartialEq, T: PartialEq,

source§

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

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

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

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

impl<T, C> Pixel<T> for Alpha<C, T>
where C: Pixel<T>,

source§

const CHANNELS: usize = _

The number of color channels.
source§

fn as_raw<P>(&self) -> &P
where P: RawPixel<T> + ?Sized,

Cast as a reference to raw color components.
source§

fn as_raw_mut<P>(&mut self) -> &mut P
where P: RawPixel<T> + ?Sized,

Cast as a mutable reference to raw color components.
source§

fn into_raw<P>(self) -> P
where P: RawPixelSized<T>,

Convert from raw color components.
source§

fn from_raw<P>(pixel: &P) -> &Self
where P: RawPixel<T> + ?Sized,

Cast from a reference to raw color components.
source§

fn from_raw_mut<P>(pixel: &mut P) -> &mut Self
where P: RawPixel<T> + ?Sized,

Cast from a mutable reference to raw color components.
source§

fn from_raw_slice(slice: &[T]) -> &[Self]

Cast a slice of raw color components to a slice of colors. Read more
source§

fn from_raw_slice_mut(slice: &mut [T]) -> &mut [Self]

Cast a mutable slice of raw color components to a mutable slice of colors. Read more
source§

fn into_raw_slice(slice: &[Self]) -> &[T]

Cast a slice of colors to a slice of raw color components. Read more
source§

fn into_raw_slice_mut(slice: &mut [Self]) -> &mut [T]

Cast a mutable slice of colors to a mutable slice of raw color components. Read more
source§

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

The default relative tolerance for testing values that are far-apart. Read more
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

A test for equality that uses a relative comparison if the values are far apart.
§

fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon ) -> bool

The inverse of ApproxEq::relative_eq.
source§

impl<C> Saturate for Alpha<C, <C as Saturate>::Scalar>
where C: Saturate,

§

type Scalar = <C as Saturate>::Scalar

The type of the (de)saturation factor.
source§

fn saturate( &self, factor: <C as Saturate>::Scalar ) -> Alpha<C, <C as Saturate>::Scalar>

Increase the saturation by factor.
source§

fn desaturate(&self, factor: Self::Scalar) -> Self

Decrease the saturation by factor.
source§

impl<C, T> Serialize for Alpha<C, T>
where C: Serialize, T: Serialize,

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<C> Shade for Alpha<C, <C as Shade>::Scalar>
where C: Shade,

§

type Scalar = <C as Shade>::Scalar

The type of the lighten/darken amount.
source§

fn lighten( &self, amount: <C as Shade>::Scalar ) -> Alpha<C, <C as Shade>::Scalar>

Lighten the color by amount.
source§

fn darken(&self, amount: Self::Scalar) -> Self

Darken the color by amount.
source§

impl<T, C> Sub<T> for Alpha<C, T>
where T: Sub + Clone, C: Sub<T>,

§

type Output = Alpha<<C as Sub<T>>::Output, <T as Sub>::Output>

The resulting type after applying the - operator.
source§

fn sub(self, c: T) -> <Alpha<C, T> as Sub<T>>::Output

Performs the - operation. Read more
source§

impl<C, T> Sub for Alpha<C, T>
where C: Sub, T: Float,

§

type Output = Alpha<<C as Sub>::Output, <T as Sub>::Output>

The resulting type after applying the - operator.
source§

fn sub(self, other: Alpha<C, T>) -> <Alpha<C, T> as Sub>::Output

Performs the - operation. Read more
source§

impl<T, C> SubAssign<T> for Alpha<C, T>
where T: SubAssign + Copy, C: SubAssign<T>,

source§

fn sub_assign(&mut self, c: T)

Performs the -= operation. Read more
source§

impl<C, T> SubAssign for Alpha<C, T>
where C: SubAssign, T: Float + SubAssign,

source§

fn sub_assign(&mut self, other: Alpha<C, T>)

Performs the -= operation. Read more
source§

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

The default ULPs to tolerate when testing values that are far-apart. Read more
source§

fn ulps_eq( &self, other: &Alpha<C, T>, epsilon: <Alpha<C, T> as AbsDiffEq>::Epsilon, max_ulps: u32 ) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
§

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of ApproxEq::ulps_eq.
source§

impl<C, T> UpperHex for Alpha<C, T>
where T: UpperHex, C: UpperHex,

source§

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

Formats the value using the given formatter.
source§

impl<C, T> Copy for Alpha<C, T>
where C: Copy, T: Copy,

source§

impl<C, T> StructuralPartialEq for Alpha<C, T>

Auto Trait Implementations§

§

impl<C, T> RefUnwindSafe for Alpha<C, T>

§

impl<C, T> Send for Alpha<C, T>
where C: Send, T: Send,

§

impl<C, T> Sync for Alpha<C, T>
where C: Sync, T: Sync,

§

impl<C, T> Unpin for Alpha<C, T>
where C: Unpin, T: Unpin,

§

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
where T: Component + Float, Swp: WhitePoint, Dwp: WhitePoint, D: AdaptFrom<S, Swp, Dwp, T>,

source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<Swp, Dwp, T>,

Convert the source color to the destination color using the specified method
source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default
source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T, U> ConvertFrom<T> for U
where U: From<T> + Limited,

source§

fn convert_from(t: T) -> U

Convert from T with values clamped to the color defined bounds Read more
source§

fn try_convert_from(t: T) -> Result<U, OutOfBounds<U>>

Convert from T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
source§

fn convert_unclamped_from(val: T) -> Self

Convert from T. The resulting color might be invalid in its color space Read more
source§

impl<T, U> ConvertInto<U> for T
where U: ConvertFrom<T>,

source§

fn convert_into(self) -> U

Convert into T with values clamped to the color defined bounds Read more
source§

fn convert_unclamped_into(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
source§

fn try_convert_into(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

source§

impl<T> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

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

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
source§

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

§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T

§

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

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

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

§

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