Struct palette::Alpha[][src]

#[repr(C)]
pub struct Alpha<C, T> { pub color: C, pub alpha: T, }

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

impl<C, T: Component> Alpha<C, T>[src]

pub fn min_alpha() -> T[src]

Return the alpha value minimum.

pub fn max_alpha() -> T[src]

Return the alpha value maximum.

impl<T, A> Alpha<Hsl<Srgb, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Hsla implementations.

pub fn new<H: Into<RgbHue<T>>>(
    hue: H,
    saturation: T,
    lightness: T,
    alpha: A
) -> Self
[src]

HSL and transparency for linear sRGB.

impl<S, T, A> Alpha<Hsl<S, T>, A> where
    T: FloatComponent,
    A: Component,
    S: RgbStandard
[src]

Hsla implementations.

pub fn with_wp<H: Into<RgbHue<T>>>(
    hue: H,
    saturation: T,
    lightness: T,
    alpha: A
) -> Self
[src]

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: Into<RgbHue<T>>>(
    (hue, saturation, lightness, alpha): (H, T, T, A)
) -> Self
[src]

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

impl<T, A> Alpha<Hsluv<D65, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Hsluva implementations.

pub fn new<H: Into<LuvHue<T>>>(hue: H, saturation: T, l: T, alpha: A) -> Self[src]

HSLuv and transparency with standard D65 whitepoint.

impl<Wp, T, A> Alpha<Hsluv<Wp, T>, A> where
    T: FloatComponent,
    A: Component,
    Wp: WhitePoint
[src]

Hsluva implementations.

pub fn with_wp<H: Into<LuvHue<T>>>(
    hue: H,
    saturation: T,
    l: T,
    alpha: A
) -> Self
[src]

HSLuv and transparency.

pub fn into_components(self) -> (LuvHue<T>, T, T, A)[src]

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

pub fn from_components<H: Into<LuvHue<T>>>(
    (hue, saturation, l, alpha): (H, T, T, A)
) -> Self
[src]

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

impl<T, A> Alpha<Hsv<Srgb, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Hsva implementations.

pub fn new<H: Into<RgbHue<T>>>(
    hue: H,
    saturation: T,
    value: T,
    alpha: A
) -> Self
[src]

HSV and transparency for linear sRGB.

impl<S, T, A> Alpha<Hsv<S, T>, A> where
    T: FloatComponent,
    A: Component,
    S: RgbStandard
[src]

Hsva implementations.

pub fn with_wp<H: Into<RgbHue<T>>>(
    hue: H,
    saturation: T,
    value: T,
    alpha: A
) -> Self
[src]

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: Into<RgbHue<T>>>(
    (hue, saturation, value, alpha): (H, T, T, A)
) -> Self
[src]

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

impl<T, A> Alpha<Hwb<Srgb, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Hwba implementations.

pub fn new<H: Into<RgbHue<T>>>(
    hue: H,
    whiteness: T,
    blackness: T,
    alpha: A
) -> Self
[src]

HWB and transparency for linear sRGB.

impl<S, T, A> Alpha<Hwb<S, T>, A> where
    T: FloatComponent,
    A: Component,
    S: RgbStandard
[src]

Hwba implementations.

pub fn with_wp<H: Into<RgbHue<T>>>(
    hue: H,
    whiteness: T,
    blackness: T,
    alpha: A
) -> Self
[src]

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: Into<RgbHue<T>>>(
    (hue, whiteness, blackness, alpha): (H, T, T, A)
) -> Self
[src]

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

impl<T, A> Alpha<Lab<D65, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Laba implementations.

pub fn new(l: T, a: T, b: T, alpha: A) -> Self[src]

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

impl<Wp, T, A> Alpha<Lab<Wp, T>, A> where
    T: FloatComponent,
    A: Component,
    Wp: WhitePoint
[src]

Laba implementations.

pub fn with_wp(l: T, a: T, b: T, alpha: A) -> Self[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((l, a, b, alpha): (T, T, T, A)) -> Self[src]

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

impl<T, A> Alpha<Lch<D65, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Lcha implementations.

pub fn new<H: Into<LabHue<T>>>(l: T, chroma: T, hue: H, alpha: A) -> Self[src]

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

impl<Wp, T, A> Alpha<Lch<Wp, T>, A> where
    T: FloatComponent,
    A: Component,
    Wp: WhitePoint
[src]

Lcha implementations.

pub fn with_wp<H: Into<LabHue<T>>>(l: T, chroma: T, hue: H, alpha: A) -> Self[src]

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: Into<LabHue<T>>>(
    (l, chroma, hue, alpha): (T, T, H, A)
) -> Self
[src]

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

impl<T, A> Alpha<Lchuv<D65, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Lchuva implementations.

pub fn new<H: Into<LuvHue<T>>>(l: T, chroma: T, hue: H, alpha: A) -> Self[src]

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

impl<Wp, T, A> Alpha<Lchuv<Wp, T>, A> where
    T: FloatComponent,
    A: Component,
    Wp: WhitePoint
[src]

Lchuva implementations.

pub fn with_wp<H: Into<LuvHue<T>>>(l: T, chroma: T, hue: H, alpha: A) -> Self[src]

CIE L*C*uv h°uv and transparency.

pub fn into_components(self) -> (T, T, LuvHue<T>, A)[src]

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

pub fn from_components<H: Into<LuvHue<T>>>(
    (l, chroma, hue, alpha): (T, T, H, A)
) -> Self
[src]

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

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

Lumaa implementations.

pub fn new(luma: T, alpha: A) -> Self[src]

Create a luminance color with transparency.

pub fn into_format<U, B>(self) -> Alpha<Luma<S, U>, B> where
    U: Component + FromComponent<T>,
    B: Component + FromComponent<A>, 
[src]

Convert into another component type.

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

Convert from another component type.

pub fn into_components(self) -> (T, A)[src]

Convert to a (luma, alpha) tuple.

pub fn from_components((luma, alpha): (T, A)) -> Self[src]

Convert from a (luma, alpha) tuple.

impl<S, T, A> Alpha<Luma<S, T>, A> where
    T: FloatComponent,
    A: Component,
    S: LumaStandard
[src]

Lumaa implementations.

pub fn into_linear(self) -> Alpha<Luma<Linear<S::WhitePoint>, T>, A>[src]

Convert the color to linear luminance with transparency.

pub fn from_linear(
    color: Alpha<Luma<Linear<S::WhitePoint>, T>, A>
) -> Alpha<Luma<S, T>, A>
[src]

Convert linear luminance to nonlinear luminance with transparency.

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

Convert the color to a different encoding with transparency.

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

Convert luminance from a different encoding with transparency.

impl<T, A> Alpha<Luv<D65, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Luva implementations.

pub fn new(l: T, u: T, v: T, alpha: A) -> Self[src]

CIE L*u*v* and transparency and white point D65.

impl<Wp, T, A> Alpha<Luv<Wp, T>, A> where
    T: FloatComponent,
    A: Component,
    Wp: WhitePoint
[src]

Luva implementations.

pub fn with_wp(l: T, u: T, v: T, alpha: A) -> Self[src]

CIE L*u*v* and transparency.

pub fn into_components(self) -> (T, T, T, A)[src]

Convert to u (L\*, u\*, v\*, alpha) tuple.

pub fn from_components((l, u, v, alpha): (T, T, T, A)) -> Self[src]

Convert from u (L\*, u\*, v\*, alpha) tuple.

impl<S: RgbStandard, T: Component, A: Component> Alpha<Rgb<S, T>, A>[src]

Rgba implementations.

pub fn new(red: T, green: T, blue: T, alpha: A) -> Self[src]

Nonlinear RGB.

pub fn into_format<U, B>(self) -> Alpha<Rgb<S, U>, B> where
    U: Component + FromComponent<T>,
    B: Component + FromComponent<A>, 
[src]

Convert into another component type.

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

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((red, green, blue, alpha): (T, T, T, A)) -> Self[src]

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

impl<S: RgbStandard> Alpha<Rgb<S, T>, T>[src]

Convenience functions to convert between a packed u32 and Rgba.

use palette::Srgba;

let rgba = Srgba::from(0x607F00FF);
assert_eq!(Srgba::new(96u8, 127, 0, 255), rgba);

let integer = u32::from(rgba);
assert_eq!(0x607F00FF, integer);

pub fn into_u32<C: RgbChannels>(self) -> u32[src]

Convert to a packed u32 with with specifiable component order. Defaults to ARGB ordering (0xAARRGGBB).

See Packed for more details.

pub fn from_u32<C: RgbChannels>(color: u32) -> Self[src]

Convert from a packed u32 with specifiable component order. Defaults to ARGB ordering (0xAARRGGBB).

See Packed for more details.

impl<S: RgbStandard, T: FloatComponent, A: Component> Alpha<Rgb<S, T>, A>[src]

Rgba implementations.

pub fn into_linear(self) -> Alpha<Rgb<Linear<S::Space>, T>, A>[src]

Convert the color to linear RGB with transparency.

pub fn from_linear(color: Alpha<Rgb<Linear<S::Space>, T>, A>) -> Self[src]

Convert linear RGB to nonlinear RGB with transparency.

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

Convert the color to a different encoding with transparency.

pub fn from_encoding<St: RgbStandard<Space = S::Space>>(
    color: Alpha<Rgb<St, T>, A>
) -> Self
[src]

Convert RGB from a different encoding with transparency.

impl<T, A> Alpha<Xyz<D65, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Xyza implementations.

pub fn new(x: T, y: T, luma: T, alpha: A) -> Self[src]

CIE Yxy and transparency with white point D65.

impl<Wp, T, A> Alpha<Xyz<Wp, T>, A> where
    T: FloatComponent,
    A: Component,
    Wp: WhitePoint
[src]

Xyza implementations.

pub fn with_wp(x: T, y: T, z: T, alpha: A) -> Self[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((x, y, z, alpha): (T, T, T, A)) -> Self[src]

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

impl<T, A> Alpha<Yxy<D65, T>, A> where
    T: FloatComponent,
    A: Component
[src]

Yxya implementations.

pub fn new(x: T, y: T, luma: T, alpha: A) -> Self[src]

CIE Yxy and transparency with white point D65.

impl<Wp, T, A> Alpha<Yxy<Wp, T>, A> where
    T: FloatComponent,
    A: Component,
    Wp: WhitePoint
[src]

Yxya implementations.

pub fn with_wp(x: T, y: T, luma: T, alpha: A) -> Self[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((x, y, luma, alpha): (T, T, T, A)) -> Self[src]

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

Trait Implementations

impl<C, T> AbsDiffEq<Alpha<C, T>> for Alpha<C, T> where
    C: AbsDiffEq<Epsilon = T::Epsilon>,
    T: AbsDiffEq,
    T::Epsilon: Clone
[src]

type Epsilon = T::Epsilon

Used for specifying relative comparisons.

impl<C: Add, T: Float> Add<Alpha<C, T>> for Alpha<C, T>[src]

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

The resulting type after applying the + operator.

impl<T: Add + Clone, C: Add<T>> Add<T> for Alpha<C, T>[src]

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

The resulting type after applying the + operator.

impl<C: AddAssign, T: Float + AddAssign> AddAssign<Alpha<C, T>> for Alpha<C, T>[src]

impl<T: AddAssign + Copy, C: AddAssign<T>> AddAssign<T> for Alpha<C, T>[src]

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

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

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

type Color = C::Color

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

impl<C: Clamp, T: Component> Clamp for Alpha<C, T>[src]

impl<C: Clone, T: Clone> Clone for Alpha<C, T>[src]

impl<C: ComponentWise<Scalar = T>, T: Clone> ComponentWise for Alpha<C, T>[src]

type Scalar = T

The scalar type for color components.

impl<C: Debug, T: Debug> Debug for Alpha<C, T>[src]

impl<C: Default, T: Component> Default for Alpha<C, T>[src]

impl<C, T> Deref for Alpha<C, T>[src]

type Target = C

The resulting type after dereferencing.

impl<C, T> DerefMut for Alpha<C, T>[src]

impl<C: Div, T: Float> Div<Alpha<C, T>> for Alpha<C, T>[src]

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

The resulting type after applying the / operator.

impl<T: Div + Clone, C: Div<T>> Div<T> for Alpha<C, T>[src]

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

The resulting type after applying the / operator.

impl<C: DivAssign, T: Float + DivAssign> DivAssign<Alpha<C, T>> for Alpha<C, T>[src]

impl<T: DivAssign + Copy, C: DivAssign<T>> DivAssign<T> for Alpha<C, T>[src]

impl<S: RgbStandard, T: FloatComponent, H: Into<RgbHue<T>>, A: Component> From<(H, T, T, A)> for Alpha<Hsl<S, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, H: Into<LuvHue<T>>, A: Component> From<(H, T, T, A)> for Alpha<Hsluv<Wp, T>, A>[src]

impl<S: RgbStandard, T: FloatComponent, H: Into<RgbHue<T>>, A: Component> From<(H, T, T, A)> for Alpha<Hsv<S, T>, A>[src]

impl<S: RgbStandard, T: FloatComponent, H: Into<RgbHue<T>>, A: Component> From<(H, T, T, A)> for Alpha<Hwb<S, T>, A>[src]

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

impl<Wp: WhitePoint, T: FloatComponent, H: Into<LabHue<T>>, A: Component> From<(T, T, H, A)> for Alpha<Lch<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, H: Into<LuvHue<T>>, A: Component> From<(T, T, H, A)> for Alpha<Lchuv<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> From<(T, T, T, A)> for Alpha<Lab<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> From<(T, T, T, A)> for Alpha<Luv<Wp, T>, A>[src]

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

impl<Wp: WhitePoint, T: FloatComponent, A: Component> From<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> From<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A>[src]

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

impl<T, U> From<Alpha<Rgb<Linear<Srgb>, T>, T>> for Srgba<U> where
    T: FloatComponent,
    U: Component + FromComponent<T>, 
[src]

impl<S: RgbStandard> From<Alpha<Rgb<S, u8>, u8>> for u32[src]

impl<S, C> From<Alpha<Rgb<S, u8>, u8>> for Packed<C> where
    S: RgbStandard,
    C: RgbChannels
[src]

impl<T, U> From<Alpha<Rgb<Srgb, T>, T>> for LinSrgba<U> where
    T: FloatComponent,
    U: Component + FromComponent<T>, 
[src]

impl<C, T: Component> From<C> for Alpha<C, T>[src]

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

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hsl<S, T> where
    T: FloatComponent,
    S: RgbStandard,
    T: FloatComponent,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hsluv<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint,
    T: FloatComponent,
    Wp: WhitePoint,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Xyz<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint,
    T: FloatComponent,
    Wp: WhitePoint,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Yxy<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint,
    T: FloatComponent,
    Wp: WhitePoint,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hsv<S, T> where
    T: FloatComponent,
    S: RgbStandard,
    T: FloatComponent,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hwb<S, T> where
    T: FloatComponent,
    S: RgbStandard,
    T: FloatComponent,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Lab<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint,
    T: FloatComponent,
    Wp: WhitePoint,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Lch<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint,
    T: FloatComponent,
    Wp: WhitePoint,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Lchuv<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint,
    T: FloatComponent,
    Wp: WhitePoint,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Luma<S, T> where
    T: Component,
    S: LumaStandard,
    T: FloatComponent,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Luv<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint,
    T: FloatComponent,
    Wp: WhitePoint,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<S: RgbStandard, T: Component, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Rgb<S, T> where
    T: FloatComponent,
    _C: IntoColorUnclamped<Self>,
    _A: Component
[src]

impl<C1: WithAlpha<T>, C2, T: Component> FromColorUnclamped<C1> for Alpha<C2, T> where
    C1::Color: IntoColorUnclamped<C2>, 
[src]

impl<C: GetHue, T> GetHue for Alpha<C, T>[src]

type Hue = C::Hue

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

impl<C: Hue, T: Clone> Hue for Alpha<C, T>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> Into<(LuvHue<T>, T, T, A)> for Alpha<Hsluv<Wp, T>, A>[src]

impl<S: RgbStandard, T: FloatComponent, A: Component> Into<(RgbHue<T>, T, T, A)> for Alpha<Hsl<S, T>, A>[src]

impl<S: RgbStandard, T: FloatComponent, A: Component> Into<(RgbHue<T>, T, T, A)> for Alpha<Hsv<S, T>, A>[src]

impl<S: RgbStandard, T: FloatComponent, A: Component> Into<(RgbHue<T>, T, T, A)> for Alpha<Hwb<S, T>, A>[src]

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

impl<Wp: WhitePoint, T: FloatComponent, A: Component> Into<(T, T, LabHue<T>, A)> for Alpha<Lch<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> Into<(T, T, LuvHue<T>, A)> for Alpha<Lchuv<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> Into<(T, T, T, A)> for Alpha<Lab<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> Into<(T, T, T, A)> for Alpha<Luv<Wp, T>, A>[src]

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

impl<Wp: WhitePoint, T: FloatComponent, A: Component> Into<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A>[src]

impl<Wp: WhitePoint, T: FloatComponent, A: Component> Into<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A>[src]

impl<C, T> LowerHex for Alpha<C, T> where
    T: LowerHex,
    C: LowerHex
[src]

impl<C: Mix> Mix for Alpha<C, C::Scalar>[src]

type Scalar = C::Scalar

The type of the mixing factor.

impl<C: Mul, T: Float> Mul<Alpha<C, T>> for Alpha<C, T>[src]

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

The resulting type after applying the * operator.

impl<T: Mul + Clone, C: Mul<T>> Mul<T> for Alpha<C, T>[src]

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

The resulting type after applying the * operator.

impl<C: MulAssign, T: Float + MulAssign> MulAssign<Alpha<C, T>> for Alpha<C, T>[src]

impl<T: MulAssign + Copy, C: MulAssign<T>> MulAssign<T> for Alpha<C, T>[src]

impl<C, T> PartialEq<Alpha<C, T>> for Alpha<C, T> where
    T: PartialEq,
    C: PartialEq
[src]

impl<T, C: Pixel<T>> Pixel<T> for Alpha<C, T>[src]

impl<C, T> RelativeEq<Alpha<C, T>> for Alpha<C, T> where
    C: RelativeEq<Epsilon = T::Epsilon>,
    T: RelativeEq,
    T::Epsilon: Clone
[src]

impl<C: Saturate> Saturate for Alpha<C, C::Scalar>[src]

type Scalar = C::Scalar

The type of the (de)saturation modifier.

impl<C: Shade> Shade for Alpha<C, C::Scalar>[src]

type Scalar = C::Scalar

The type of the lighten/darken modifier.

impl<C: Sub, T: Float> Sub<Alpha<C, T>> for Alpha<C, T>[src]

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

The resulting type after applying the - operator.

impl<T: Sub + Clone, C: Sub<T>> Sub<T> for Alpha<C, T>[src]

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

The resulting type after applying the - operator.

impl<C: SubAssign, T: Float + SubAssign> SubAssign<Alpha<C, T>> for Alpha<C, T>[src]

impl<T: SubAssign + Copy, C: SubAssign<T>> SubAssign<T> for Alpha<C, T>[src]

impl<C, T> UlpsEq<Alpha<C, T>> for Alpha<C, T> where
    C: UlpsEq<Epsilon = T::Epsilon>,
    T: UlpsEq,
    T::Epsilon: Clone
[src]

impl<C, T> UpperHex for Alpha<C, T> where
    T: UpperHex,
    C: UpperHex
[src]

impl<C, A: Component> WithAlpha<A> for Alpha<C, A>[src]

type Color = C

The opaque color type, without any transparency. Read more

type WithAlpha = Self

The color type with transparency applied. Read more

impl<C: Copy, T: Copy> Copy for Alpha<C, T>[src]

impl<C, T> Eq for Alpha<C, T> where
    T: Eq,
    C: Eq
[src]

Auto Trait Implementations

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

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

impl<S, D, Swp, Dwp, T> AdaptFrom<S, Swp, Dwp, T> for D where
    T: FloatComponent,
    S: IntoColorUnclamped<Xyz<Swp, T>>,
    Swp: WhitePoint,
    Dwp: WhitePoint,
    D: FromColorUnclamped<Xyz<Dwp, T>>, 
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: FloatComponent,
    Swp: WhitePoint,
    Dwp: WhitePoint,
    D: AdaptFrom<S, Swp, Dwp, T>, 
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> FromColor<T> for U where
    U: FromColorUnclamped<T> + Clamp
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoColor<U> for T where
    U: FromColor<T>, 
[src]

impl<T, U> IntoColorUnclamped<U> for T where
    U: FromColorUnclamped<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryFromColor<T> for U where
    U: FromColorUnclamped<T> + Clamp
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> TryIntoColor<U> for T where
    U: TryFromColor<T>, 
[src]