palette::alpha

Struct Alpha

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

An alpha component wrapper for colors, for adding transparency.

Instead of having separate types for “RGB with alpha”, “HSV with alpha”, and so on, Palette uses this wrapper type to attach the alpha component. The memory representation is the same as if alpha was the last member/property of color, which is just as space efficient. The perk of having a wrapper is that the alpha can easily be added to or separated form any color.

§Creating Transparent Values

The color types in Palette have transparent type aliases, such as Srgba for Srgb or Hsla for Hsl. These aliases implement new and other useful methods. Here’s the same example as for Rgb, but with transparency:

use palette::Srgba;

let rgba_u8 = Srgba::new(171u8, 193, 35, 128);
let rgab_f32 = Srgba::new(0.3f32, 0.8, 0.1, 0.5);

// `new` is also `const`:
const RGBA_U8: Srgba<u8> = Srgba::new(171, 193, 35, 128);

// Conversion methods from the color type are usually available for transparent
// values too. For example `into_format` for changing the number format:
let rgb_u8_from_f32 = Srgba::new(0.3f32, 0.8, 0.1, 0.5).into_format::<u8, u8>();

// Hexadecimal is also supported for RGBA, with or without the #:
let rgb_from_hex1: Srgba<u8> = "#f034e65a".parse().unwrap();
let rgb_from_hex2: Srgba<u8> = "f034e65a".parse().unwrap();
assert_eq!(rgb_from_hex1, rgb_from_hex2);

// This includes the shorthand format:
let rgb_from_short_hex: Srgba<u8> = "f3ea".parse().unwrap();
let rgb_from_long_hex: Srgba<u8> = "ff33eeaa".parse().unwrap();
assert_eq!(rgb_from_short_hex, rgb_from_long_hex);

// It's also possible to convert from (and to) arrays, tuples and `u32` values:
let rgb_from_array = Srgba::from([171u8, 193, 35, 128]);
let rgb_from_tuple = Srgba::from((171u8, 193, 35, 128));
let rgb_from_u32 = Srgba::from(0x607F005A);

Opaque values can be made transparent using the WithAlpha trait, in addition to simply wrapping them in Alpha. WithAlpha is also useful in generic code, since it’s implemented for both opaque and transparent types.

use palette::{WithAlpha, Srgb};

let rgb = Srgb::new(171u8, 193, 35);
let rgba = rgb.with_alpha(128u8);
assert_eq!(rgba.alpha, 128);

You may have noticed the u8 in rgb.with_alpha(128u8). That’s because Alpha allows the transparency component to have a different type than the color components. It would be just as valid to write rgb.with_alpha(0.5f32), for example.

§Accessing Color Components

To help with the nesting, Alpha implements Deref and DerefMut. This use of the traits is a bit unconventional, since Alpha isn’t a smart pointer. It turned out to be a quite successful experiment that stuck around.

use palette::Srgba;

let rgba = Srgba::new(171u8, 193, 35, 128);
let red = rgba.red; // Accesses `rgba.color.red`.
let alpha = rgba.alpha; // Accesses `rgba.alpha`.
let rgb = rgba.color; // Accesses `rgba.color`;

The main drawback is in generic code:

use palette::Srgba;

fn get_red<T>(rgba: Srgba<T>) -> T {
    rgba.red // Error: cannot move out of dereference of `Alpha<Rgb<_, T>, T>`
}

red has to be accessed through color:

use palette::Srgba;

fn get_red<T>(rgba: Srgba<T>) -> T {
    rgba.color.red
}

Fields§

§color: C

The color.

§alpha: T

The transparency component. 0.0 (or 0u8) is fully transparent and 1.0 (or 255u8) is fully opaque.

Implementations§

source§

impl<C, A> Alpha<C, A>

source

pub fn iter<'a>(&'a self) -> <&'a Self as IntoIterator>::IntoIter
where &'a Self: IntoIterator,

Return an iterator over the colors in the wrapped collections.

source

pub fn iter_mut<'a>(&'a mut self) -> <&'a mut Self as IntoIterator>::IntoIter
where &'a mut Self: IntoIterator,

Return an iterator that allows modifying the colors in the wrapped collections.

source§

impl<C: Premultiply> Alpha<C, C::Scalar>

source

pub fn premultiply(self) -> PreAlpha<C>

Alpha mask the color by its transparency.

source§

impl<C, T: Stimulus> Alpha<C, T>

source

pub fn min_alpha() -> T

Return the alpha value minimum.

source

pub fn max_alpha() -> T

Return the alpha value maximum.

source§

impl<T, A> Alpha<Cam16<T>, A>

Cam16a implementations.

source

pub fn from_xyz<WpParam>( color: Alpha<Xyz<WpParam::StaticWp, T>, A>, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Self
where Xyz<WpParam::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16<T>, Scalar = T::Scalar>, T: FromScalar, WpParam: WhitePointParameter<T::Scalar>,

Derive CIE CAM16 attributes with transparency for the provided color, under the provided viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), example_parameters);

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), baked_parameters);
source

pub fn into_xyz<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Xyz<WpParam::StaticWp, T>, A>
where Cam16<T>: Cam16IntoUnclamped<WpParam, Xyz<WpParam::StaticWp, T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Construct an XYZ color with transparency, that matches these CIE CAM16 attributes, under the provided viewing conditions.

This assumes that all of the correlated attributes are consistent, as only some of them are actually used. You may want to use one of the partial CAM16 representations for more control over which set of attributes that should be.

use palette::{Srgba, FromColor, cam16::{Cam16a, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let cam16a = get_cam16a_value();
let rgba = Srgba::from_color(cam16a.into_xyz(example_parameters));

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, FromColor, cam16::{Cam16a, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let cam16a = get_cam16a_value();
let rgba = Srgba::from_color(cam16a.into_xyz(baked_parameters));
source§

impl<T, A> Alpha<Cam16Jch<T>, A>

Cam16Jcha implementations.

source

pub fn new<H: Into<Cam16Hue<T>>>( lightness: T, chroma: T, hue: H, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency.

source

pub const fn new_const( lightness: T, chroma: T, hue: Cam16Hue<T>, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency. This is the same as Cam16Jch::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

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

source

pub fn from_components<H: Into<Cam16Hue<T>>>( (lightness, chroma, hue, alpha): (T, T, H, A), ) -> Self

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

source

pub fn from_xyz<WpParam>( color: Alpha<Xyz<WpParam::StaticWp, T>, A>, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Self
where Xyz<WpParam::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16Jch<T>, Scalar = T::Scalar>, T: FromScalar, WpParam: WhitePointParameter<T::Scalar>,

Derive partial CIE CAM16 attributes with transparency, for the provided color, under the provided viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16Jcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Jcha::from_xyz(rgba.into_color(), example_parameters);

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, IntoColor, cam16::{Cam16Jcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Jcha::from_xyz(rgba.into_color(), baked_parameters);
source

pub fn into_xyz<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Xyz<WpParam::StaticWp, T>, A>
where Cam16Jch<T>: Cam16IntoUnclamped<WpParam, Xyz<WpParam::StaticWp, T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Construct an XYZ color with transparency, from these CIE CAM16 attributes, under the provided viewing conditions.

use palette::{Srgba, FromColor, cam16::{Cam16Jcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let partial = Cam16Jcha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(example_parameters));

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, FromColor, cam16::{Cam16Jcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let partial = Cam16Jcha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(baked_parameters));
source

pub fn from_full(full: Alpha<Cam16<T>, A>) -> Self

Create a partial set of CIE CAM16 attributes with transparency.

It’s also possible to use Cam16Jcha::from or Cam16a::into.

source

pub fn into_full<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Cam16<T>, A>
where Cam16Jch<T>: IntoCam16Unclamped<WpParam, Cam16<T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Reconstruct a full set of CIE CAM16 attributes with transparency, using the original viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Cam16Jcha, Parameters}};
use approx::assert_relative_eq;

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

// Optional, but saves some work:
let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f64, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), baked_parameters);
let partial = Cam16Jcha::from(cam16a);
let reconstructed = partial.into_full(baked_parameters);

assert_relative_eq!(cam16a, reconstructed, epsilon = 0.0000000000001);
source§

impl<T, A> Alpha<Cam16Jch<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16Jch<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Jch<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16Jch<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16Jch<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16Jch<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16Jch<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Jch<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16Jch<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16Jch<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16Jch<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16Jch<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16Jch<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16Jch<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Cam16Jmh<T>, A>

Cam16Jmha implementations.

source

pub fn new<H: Into<Cam16Hue<T>>>( lightness: T, colorfulness: T, hue: H, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency.

source

pub const fn new_const( lightness: T, colorfulness: T, hue: Cam16Hue<T>, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency. This is the same as Cam16Jmh::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

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

source

pub fn from_components<H: Into<Cam16Hue<T>>>( (lightness, colorfulness, hue, alpha): (T, T, H, A), ) -> Self

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

source

pub fn from_xyz<WpParam>( color: Alpha<Xyz<WpParam::StaticWp, T>, A>, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Self
where Xyz<WpParam::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16Jmh<T>, Scalar = T::Scalar>, T: FromScalar, WpParam: WhitePointParameter<T::Scalar>,

Derive partial CIE CAM16 attributes with transparency, for the provided color, under the provided viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16Jmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Jmha::from_xyz(rgba.into_color(), example_parameters);

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, IntoColor, cam16::{Cam16Jmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Jmha::from_xyz(rgba.into_color(), baked_parameters);
source

pub fn into_xyz<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Xyz<WpParam::StaticWp, T>, A>
where Cam16Jmh<T>: Cam16IntoUnclamped<WpParam, Xyz<WpParam::StaticWp, T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Construct an XYZ color with transparency, from these CIE CAM16 attributes, under the provided viewing conditions.

use palette::{Srgba, FromColor, cam16::{Cam16Jmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let partial = Cam16Jmha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(example_parameters));

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, FromColor, cam16::{Cam16Jmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let partial = Cam16Jmha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(baked_parameters));
source

pub fn from_full(full: Alpha<Cam16<T>, A>) -> Self

Create a partial set of CIE CAM16 attributes with transparency.

It’s also possible to use Cam16Jmha::from or Cam16a::into.

source

pub fn into_full<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Cam16<T>, A>
where Cam16Jmh<T>: IntoCam16Unclamped<WpParam, Cam16<T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Reconstruct a full set of CIE CAM16 attributes with transparency, using the original viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Cam16Jmha, Parameters}};
use approx::assert_relative_eq;

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

// Optional, but saves some work:
let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f64, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), baked_parameters);
let partial = Cam16Jmha::from(cam16a);
let reconstructed = partial.into_full(baked_parameters);

assert_relative_eq!(cam16a, reconstructed, epsilon = 0.0000000000001);
source§

impl<T, A> Alpha<Cam16Jmh<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16Jmh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Jmh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16Jmh<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16Jmh<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16Jmh<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16Jmh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Jmh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16Jmh<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16Jmh<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16Jmh<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16Jmh<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16Jmh<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16Jmh<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Cam16Jsh<T>, A>

Cam16Jsha implementations.

source

pub fn new<H: Into<Cam16Hue<T>>>( lightness: T, saturation: T, hue: H, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency.

source

pub const fn new_const( lightness: T, saturation: T, hue: Cam16Hue<T>, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency. This is the same as Cam16Jsh::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

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

source

pub fn from_components<H: Into<Cam16Hue<T>>>( (lightness, saturation, hue, alpha): (T, T, H, A), ) -> Self

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

source

pub fn from_xyz<WpParam>( color: Alpha<Xyz<WpParam::StaticWp, T>, A>, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Self
where Xyz<WpParam::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16Jsh<T>, Scalar = T::Scalar>, T: FromScalar, WpParam: WhitePointParameter<T::Scalar>,

Derive partial CIE CAM16 attributes with transparency, for the provided color, under the provided viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16Jsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Jsha::from_xyz(rgba.into_color(), example_parameters);

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, IntoColor, cam16::{Cam16Jsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Jsha::from_xyz(rgba.into_color(), baked_parameters);
source

pub fn into_xyz<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Xyz<WpParam::StaticWp, T>, A>
where Cam16Jsh<T>: Cam16IntoUnclamped<WpParam, Xyz<WpParam::StaticWp, T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Construct an XYZ color with transparency, from these CIE CAM16 attributes, under the provided viewing conditions.

use palette::{Srgba, FromColor, cam16::{Cam16Jsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let partial = Cam16Jsha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(example_parameters));

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, FromColor, cam16::{Cam16Jsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let partial = Cam16Jsha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(baked_parameters));
source

pub fn from_full(full: Alpha<Cam16<T>, A>) -> Self

Create a partial set of CIE CAM16 attributes with transparency.

It’s also possible to use Cam16Jsha::from or Cam16a::into.

source

pub fn into_full<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Cam16<T>, A>
where Cam16Jsh<T>: IntoCam16Unclamped<WpParam, Cam16<T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Reconstruct a full set of CIE CAM16 attributes with transparency, using the original viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Cam16Jsha, Parameters}};
use approx::assert_relative_eq;

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

// Optional, but saves some work:
let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f64, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), baked_parameters);
let partial = Cam16Jsha::from(cam16a);
let reconstructed = partial.into_full(baked_parameters);

assert_relative_eq!(cam16a, reconstructed, epsilon = 0.0000000000001);
source§

impl<T, A> Alpha<Cam16Jsh<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16Jsh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Jsh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16Jsh<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16Jsh<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16Jsh<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16Jsh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Jsh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16Jsh<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16Jsh<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16Jsh<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16Jsh<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16Jsh<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16Jsh<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Cam16Qch<T>, A>

Cam16Qcha implementations.

source

pub fn new<H: Into<Cam16Hue<T>>>( brightness: T, chroma: T, hue: H, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency.

source

pub const fn new_const( brightness: T, chroma: T, hue: Cam16Hue<T>, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency. This is the same as Cam16Qch::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

Convert to a (brightness, chroma, hue, alpha) tuple.

source

pub fn from_components<H: Into<Cam16Hue<T>>>( (brightness, chroma, hue, alpha): (T, T, H, A), ) -> Self

Convert from a (brightness, chroma, hue, alpha) tuple.

source

pub fn from_xyz<WpParam>( color: Alpha<Xyz<WpParam::StaticWp, T>, A>, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Self
where Xyz<WpParam::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16Qch<T>, Scalar = T::Scalar>, T: FromScalar, WpParam: WhitePointParameter<T::Scalar>,

Derive partial CIE CAM16 attributes with transparency, for the provided color, under the provided viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16Qcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Qcha::from_xyz(rgba.into_color(), example_parameters);

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, IntoColor, cam16::{Cam16Qcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Qcha::from_xyz(rgba.into_color(), baked_parameters);
source

pub fn into_xyz<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Xyz<WpParam::StaticWp, T>, A>
where Cam16Qch<T>: Cam16IntoUnclamped<WpParam, Xyz<WpParam::StaticWp, T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Construct an XYZ color with transparency, from these CIE CAM16 attributes, under the provided viewing conditions.

use palette::{Srgba, FromColor, cam16::{Cam16Qcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let partial = Cam16Qcha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(example_parameters));

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, FromColor, cam16::{Cam16Qcha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let partial = Cam16Qcha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(baked_parameters));
source

pub fn from_full(full: Alpha<Cam16<T>, A>) -> Self

Create a partial set of CIE CAM16 attributes with transparency.

It’s also possible to use Cam16Qcha::from or Cam16a::into.

source

pub fn into_full<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Cam16<T>, A>
where Cam16Qch<T>: IntoCam16Unclamped<WpParam, Cam16<T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Reconstruct a full set of CIE CAM16 attributes with transparency, using the original viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Cam16Qcha, Parameters}};
use approx::assert_relative_eq;

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

// Optional, but saves some work:
let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f64, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), baked_parameters);
let partial = Cam16Qcha::from(cam16a);
let reconstructed = partial.into_full(baked_parameters);

assert_relative_eq!(cam16a, reconstructed, epsilon = 0.0000000000001);
source§

impl<T, A> Alpha<Cam16Qch<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16Qch<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Qch<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16Qch<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16Qch<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16Qch<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16Qch<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Qch<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16Qch<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16Qch<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16Qch<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16Qch<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16Qch<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16Qch<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Cam16Qmh<T>, A>

Cam16Qmha implementations.

source

pub fn new<H: Into<Cam16Hue<T>>>( brightness: T, colorfulness: T, hue: H, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency.

source

pub const fn new_const( brightness: T, colorfulness: T, hue: Cam16Hue<T>, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency. This is the same as Cam16Qmh::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

Convert to a (brightness, colorfulness, hue, alpha) tuple.

source

pub fn from_components<H: Into<Cam16Hue<T>>>( (brightness, colorfulness, hue, alpha): (T, T, H, A), ) -> Self

Convert from a (brightness, colorfulness, hue, alpha) tuple.

source

pub fn from_xyz<WpParam>( color: Alpha<Xyz<WpParam::StaticWp, T>, A>, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Self
where Xyz<WpParam::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16Qmh<T>, Scalar = T::Scalar>, T: FromScalar, WpParam: WhitePointParameter<T::Scalar>,

Derive partial CIE CAM16 attributes with transparency, for the provided color, under the provided viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16Qmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Qmha::from_xyz(rgba.into_color(), example_parameters);

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, IntoColor, cam16::{Cam16Qmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Qmha::from_xyz(rgba.into_color(), baked_parameters);
source

pub fn into_xyz<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Xyz<WpParam::StaticWp, T>, A>
where Cam16Qmh<T>: Cam16IntoUnclamped<WpParam, Xyz<WpParam::StaticWp, T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Construct an XYZ color with transparency, from these CIE CAM16 attributes, under the provided viewing conditions.

use palette::{Srgba, FromColor, cam16::{Cam16Qmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let partial = Cam16Qmha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(example_parameters));

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, FromColor, cam16::{Cam16Qmha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let partial = Cam16Qmha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(baked_parameters));
source

pub fn from_full(full: Alpha<Cam16<T>, A>) -> Self

Create a partial set of CIE CAM16 attributes with transparency.

It’s also possible to use Cam16Qmha::from or Cam16a::into.

source

pub fn into_full<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Cam16<T>, A>
where Cam16Qmh<T>: IntoCam16Unclamped<WpParam, Cam16<T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Reconstruct a full set of CIE CAM16 attributes with transparency, using the original viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Cam16Qmha, Parameters}};
use approx::assert_relative_eq;

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

// Optional, but saves some work:
let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f64, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), baked_parameters);
let partial = Cam16Qmha::from(cam16a);
let reconstructed = partial.into_full(baked_parameters);

assert_relative_eq!(cam16a, reconstructed, epsilon = 0.0000000000001);
source§

impl<T, A> Alpha<Cam16Qmh<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16Qmh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Qmh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16Qmh<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16Qmh<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16Qmh<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16Qmh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Qmh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16Qmh<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16Qmh<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16Qmh<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16Qmh<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16Qmh<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16Qmh<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Cam16Qsh<T>, A>

Cam16Qsha implementations.

source

pub fn new<H: Into<Cam16Hue<T>>>( brightness: T, saturation: T, hue: H, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency.

source

pub const fn new_const( brightness: T, saturation: T, hue: Cam16Hue<T>, alpha: A, ) -> Self

Create a partial CIE CAM16 color with transparency. This is the same as Cam16Qsh::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

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

source

pub fn from_components<H: Into<Cam16Hue<T>>>( (brightness, saturation, hue, alpha): (T, T, H, A), ) -> Self

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

source

pub fn from_xyz<WpParam>( color: Alpha<Xyz<WpParam::StaticWp, T>, A>, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Self
where Xyz<WpParam::StaticWp, T>: IntoCam16Unclamped<WpParam, Cam16Qsh<T>, Scalar = T::Scalar>, T: FromScalar, WpParam: WhitePointParameter<T::Scalar>,

Derive partial CIE CAM16 attributes with transparency, for the provided color, under the provided viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16Qsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Qsha::from_xyz(rgba.into_color(), example_parameters);

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, IntoColor, cam16::{Cam16Qsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f32, 0.8, 0.1, 0.9);
let partial = Cam16Qsha::from_xyz(rgba.into_color(), baked_parameters);
source

pub fn into_xyz<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Xyz<WpParam::StaticWp, T>, A>
where Cam16Qsh<T>: Cam16IntoUnclamped<WpParam, Xyz<WpParam::StaticWp, T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Construct an XYZ color with transparency, from these CIE CAM16 attributes, under the provided viewing conditions.

use palette::{Srgba, FromColor, cam16::{Cam16Qsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let partial = Cam16Qsha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(example_parameters));

It’s also possible to “pre-bake” the parameters, to avoid recalculate some of the derived values when converting multiple color value.

use palette::{Srgba, FromColor, cam16::{Cam16Qsha, Parameters}};

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

let baked_parameters = example_parameters.bake();

let partial = Cam16Qsha::new(50.0f32, 80.0, 120.0, 0.9);
let rgba = Srgba::from_color(partial.into_xyz(baked_parameters));
source

pub fn from_full(full: Alpha<Cam16<T>, A>) -> Self

Create a partial set of CIE CAM16 attributes with transparency.

It’s also possible to use Cam16Qsha::from or Cam16a::into.

source

pub fn into_full<WpParam>( self, parameters: impl Into<BakedParameters<WpParam, T::Scalar>>, ) -> Alpha<Cam16<T>, A>
where Cam16Qsh<T>: IntoCam16Unclamped<WpParam, Cam16<T>, Scalar = T::Scalar>, WpParam: WhitePointParameter<T>, T: FromScalar,

Reconstruct a full set of CIE CAM16 attributes with transparency, using the original viewing conditions.

use palette::{Srgba, IntoColor, cam16::{Cam16a, Cam16Qsha, Parameters}};
use approx::assert_relative_eq;

// Customize these according to the viewing conditions:
let mut example_parameters = Parameters::default_static_wp(40.0);

// Optional, but saves some work:
let baked_parameters = example_parameters.bake();

let rgba = Srgba::new(0.3f64, 0.8, 0.1, 0.9);
let cam16a = Cam16a::from_xyz(rgba.into_color(), baked_parameters);
let partial = Cam16Qsha::from(cam16a);
let reconstructed = partial.into_full(baked_parameters);

assert_relative_eq!(cam16a, reconstructed, epsilon = 0.0000000000001);
source§

impl<T, A> Alpha<Cam16Qsh<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16Qsh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Qsh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16Qsh<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16Qsh<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16Qsh<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16Qsh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16Qsh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16Qsh<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16Qsh<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16Qsh<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16Qsh<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16Qsh<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16Qsh<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Cam16UcsJab<T>, A>

Cam16UcsJaba implementations.

source

pub const fn new(lightness: T, a: T, b: T, alpha: A) -> Self

Create a CAM16-UCS J’ a’ b’ color with transparency.

source

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

Convert to a (J', a', b', a) tuple.

source

pub fn from_components((lightness, a, b, alpha): (T, T, T, A)) -> Self

Convert from a (J', a', b', a) tuple.

source§

impl<T, A> Alpha<Cam16UcsJab<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16UcsJab<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16UcsJab<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16UcsJab<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16UcsJab<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16UcsJab<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16UcsJab<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16UcsJab<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16UcsJab<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16UcsJab<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16UcsJab<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16UcsJab<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16UcsJab<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16UcsJab<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Cam16UcsJmh<T>, A>

Cam16UcsJmha implementations.

source

pub fn new<H: Into<Cam16Hue<T>>>( lightness: T, colorfulness: T, hue: H, alpha: A, ) -> Self

Create a CAM16-UCS J’ M’ h’ color with transparency.

source

pub const fn new_const( lightness: T, colorfulness: T, hue: Cam16Hue<T>, alpha: A, ) -> Self

Create a CAM16-UCS J’ M’ h’ color with transparency. This is the same as Cam16UcsJmha::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

Convert to a (J', M', h', a) tuple.

source

pub fn from_components<H: Into<Cam16Hue<T>>>( (lightness, colorfulness, hue, alpha): (T, T, H, A), ) -> Self

Convert from a (J', M', h', a) tuple.

source§

impl<T, A> Alpha<Cam16UcsJmh<&T>, &A>

source

pub fn copied(&self) -> Alpha<Cam16UcsJmh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16UcsJmh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Cam16UcsJmh<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Cam16UcsJmh<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Cam16UcsJmh<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Cam16UcsJmh<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Cam16UcsJmh<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Cam16UcsJmh<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Cam16UcsJmh<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Cam16UcsJmh<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Cam16UcsJmh<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Cam16UcsJmh<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Cam16UcsJmh<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Hsl<Srgb, T>, A>

Hsla implementations.

source

pub fn new_srgb<H: Into<RgbHue<T>>>( hue: H, saturation: T, lightness: T, alpha: A, ) -> Self

Create an sRGB HSL color with transparency. This method can be used instead of Hsla::new to help type inference.

source

pub const fn new_srgb_const( hue: RgbHue<T>, saturation: T, lightness: T, alpha: A, ) -> Self

Create an sRGB HSL color with transparency. This is the same as Hsla::new_srgb without the generic hue type. It’s temporary until const fn supports traits.

source§

impl<S, T, A> Alpha<Hsl<S, T>, A>

Hsla implementations.

source

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

Create an HSL color with transparency.

source

pub const fn new_const( hue: RgbHue<T>, saturation: T, lightness: T, alpha: A, ) -> Self

Create an HSL color with transparency. This is the same as Hsla::new without the generic hue type. It’s temporary until const fn supports traits.

source

pub fn into_format<U, B>(self) -> Alpha<Hsl<S, U>, B>
where U: FromStimulus<T> + FromAngle<T>, B: FromStimulus<A>,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Hsl<S, U>, B>) -> Self
where T: FromStimulus<U> + FromAngle<U>, A: FromStimulus<B>,

Convert from another component type.

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

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

source§

impl<S, T, A> Alpha<Hsl<S, &T>, &A>

source

pub fn copied(&self) -> Alpha<Hsl<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hsl<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, T, A> Alpha<Hsl<S, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Hsl<S, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Hsl<S, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Hsl<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hsl<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, Ct, Ca> Alpha<Hsl<S, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Hsl<S, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Hsl<S, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<S, T, A> Alpha<Hsl<S, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Hsl<S, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Hsl<S, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, S>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<Wp, T, A> Alpha<Hsluv<Wp, T>, A>

Hsluva implementations.

source

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

Create an HSLuv color with transparency.

source

pub const fn new_const(hue: LuvHue<T>, saturation: T, l: T, alpha: A) -> Self

Create an HSLuv color with transparency. This is the same as Hsluva::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

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

source

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

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

source§

impl<Wp, T, A> Alpha<Hsluv<Wp, &T>, &A>

source

pub fn copied(&self) -> Alpha<Hsluv<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hsluv<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, T, A> Alpha<Hsluv<Wp, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Hsluv<Wp, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Hsluv<Wp, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Hsluv<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hsluv<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, Ct, Ca> Alpha<Hsluv<Wp, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Hsluv<Wp, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Hsluv<Wp, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<Wp, T, A> Alpha<Hsluv<Wp, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Hsluv<Wp, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Hsluv<Wp, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, Wp>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Hsv<Srgb, T>, A>

Hsva implementations.

source

pub fn new_srgb<H: Into<RgbHue<T>>>( hue: H, saturation: T, value: T, alpha: A, ) -> Self

Create an sRGB HSV color with transparency. This method can be used instead of Hsva::new to help type inference.

source

pub const fn new_srgb_const( hue: RgbHue<T>, saturation: T, value: T, alpha: A, ) -> Self

Create an sRGB HSV color with transparency. This is the same as Hsva::new_srgb without the generic hue type. It’s temporary until const fn supports traits.

source§

impl<S, T, A> Alpha<Hsv<S, T>, A>

Hsva implementations.

source

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

Create an HSV color with transparency.

source

pub const fn new_const( hue: RgbHue<T>, saturation: T, value: T, alpha: A, ) -> Self

Create an HSV color with transparency. This is the same as Hsva::new without the generic hue type. It’s temporary until const fn supports traits.

source

pub fn into_format<U, B>(self) -> Alpha<Hsv<S, U>, B>
where U: FromStimulus<T> + FromAngle<T>, B: FromStimulus<A>,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Hsv<S, U>, B>) -> Self
where T: FromStimulus<U> + FromAngle<U>, A: FromStimulus<B>,

Convert from another component type.

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

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

source§

impl<S, T, A> Alpha<Hsv<S, &T>, &A>

source

pub fn copied(&self) -> Alpha<Hsv<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hsv<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, T, A> Alpha<Hsv<S, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Hsv<S, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Hsv<S, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Hsv<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hsv<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, Ct, Ca> Alpha<Hsv<S, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Hsv<S, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Hsv<S, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<S, T, A> Alpha<Hsv<S, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Hsv<S, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Hsv<S, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, S>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Hwb<Srgb, T>, A>

Hwba implementations.

source

pub fn new_srgb<H: Into<RgbHue<T>>>( hue: H, whiteness: T, blackness: T, alpha: A, ) -> Self

Create an sRGB HWB color with transparency. This method can be used instead of Hwba::new to help type inference.

source

pub const fn new_srgb_const( hue: RgbHue<T>, whiteness: T, blackness: T, alpha: A, ) -> Self

Create an sRGB HWB color with transparency. This is the same as Hwba::new_srgb without the generic hue type. It’s temporary until const fn supports traits.

source§

impl<S, T, A> Alpha<Hwb<S, T>, A>

Hwba implementations.

source

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

Create an HWB color with transparency.

source

pub const fn new_const( hue: RgbHue<T>, whiteness: T, blackness: T, alpha: A, ) -> Self

Create an HWB color with transparency. This is the same as Hwba::new without the generic hue type. It’s temporary until const fn supports traits.

source

pub fn into_format<U, B>(self) -> Alpha<Hwb<S, U>, B>
where U: FromStimulus<T> + FromAngle<T>, B: FromStimulus<A>,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Hwb<S, U>, B>) -> Self
where T: FromStimulus<U> + FromAngle<U>, A: FromStimulus<B>,

Convert from another component type.

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

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

source§

impl<S, T, A> Alpha<Hwb<S, &T>, &A>

source

pub fn copied(&self) -> Alpha<Hwb<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hwb<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, T, A> Alpha<Hwb<S, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Hwb<S, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Hwb<S, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Hwb<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Hwb<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, Ct, Ca> Alpha<Hwb<S, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Hwb<S, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Hwb<S, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<S, T, A> Alpha<Hwb<S, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Hwb<S, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Hwb<S, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, S>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<Wp, T, A> Alpha<Lab<Wp, T>, A>

Laba implementations.

source

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

Create a CIE L*a*b* with transparency.

source

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

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

source

pub fn from_components((l, a, b, alpha): (T, T, T, A)) -> Self

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

source§

impl<Wp, T, A> Alpha<Lab<Wp, &T>, &A>

source

pub fn copied(&self) -> Alpha<Lab<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Lab<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, T, A> Alpha<Lab<Wp, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Lab<Wp, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Lab<Wp, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Lab<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Lab<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, Ct, Ca> Alpha<Lab<Wp, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Lab<Wp, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Lab<Wp, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<Wp, T, A> Alpha<Lab<Wp, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Lab<Wp, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Lab<Wp, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, Wp>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<Wp, T, A> Alpha<Lch<Wp, T>, A>

Lcha implementations.

source

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

Create a CIE L*C*h° color with transparency.

source

pub const fn new_const(l: T, chroma: T, hue: LabHue<T>, alpha: A) -> Self

Create a CIE L*C*h° color with transparency. This is the same as Lcha::new without the generic hue type. It’s temporary until const fn supports traits.

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

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

source§

impl<Wp, T, A> Alpha<Lch<Wp, &T>, &A>

source

pub fn copied(&self) -> Alpha<Lch<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Lch<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, T, A> Alpha<Lch<Wp, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Lch<Wp, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Lch<Wp, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Lch<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Lch<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, Ct, Ca> Alpha<Lch<Wp, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Lch<Wp, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Lch<Wp, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<Wp, T, A> Alpha<Lch<Wp, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Lch<Wp, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Lch<Wp, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, Wp>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<Wp, T, A> Alpha<Lchuv<Wp, T>, A>

Lchuva implementations.

source

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

Create a CIE L*C*uv h°uv color with transparency.

source

pub const fn new_const(l: T, chroma: T, hue: LuvHue<T>, alpha: A) -> Self

Create a CIE L*C*uv h°uv color with transparency. This is the same as Lchuva::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

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

source

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

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

source§

impl<Wp, T, A> Alpha<Lchuv<Wp, &T>, &A>

source

pub fn copied(&self) -> Alpha<Lchuv<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Lchuv<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, T, A> Alpha<Lchuv<Wp, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Lchuv<Wp, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Lchuv<Wp, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Lchuv<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Lchuv<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, Ct, Ca> Alpha<Lchuv<Wp, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Lchuv<Wp, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Lchuv<Wp, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<Wp, T, A> Alpha<Lchuv<Wp, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Lchuv<Wp, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Lchuv<Wp, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, Wp>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<S, T, A> Alpha<Luma<S, T>, A>

Lumaa implementations.

source

pub const fn new(luma: T, alpha: A) -> Self

Create a luminance color with transparency.

source

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

Convert into another component type.

source

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

Convert from another component type.

source

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

Convert to a (luma, alpha) tuple.

source

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

Convert from a (luma, alpha) tuple.

source§

impl<S> Alpha<Luma<S, u8>, u8>

source

pub fn into_u16<O>(self) -> u16
where O: ComponentOrder<Lumaa<S, u8>, u16>,

Convert to a packed u16 with with a specific component order.

use palette::{luma, SrgbLumaa};

let integer = SrgbLumaa::new(96u8, 255).into_u16::<luma::channels::Al>();
assert_eq!(0xFF60, integer);

It’s also possible to use From and Into, which defaults to the 0xLLAA component order:

use palette::SrgbLumaa;

let integer = u16::from(SrgbLumaa::new(96u8, 255));
assert_eq!(0x60FF, integer);

See Packed for more details.

source

pub fn from_u16<O>(color: u16) -> Self
where O: ComponentOrder<Lumaa<S, u8>, u16>,

Convert from a packed u16 with a specific component order.

use palette::{luma, SrgbLumaa};

let luma = SrgbLumaa::from_u16::<luma::channels::Al>(0xFF60);
assert_eq!(SrgbLumaa::new(96u8, 255), luma);

It’s also possible to use From and Into, which defaults to the 0xLLAA component order:

use palette::SrgbLumaa;

let luma = SrgbLumaa::from(0x60FF);
assert_eq!(SrgbLumaa::new(96u8, 255), luma);

See Packed for more details.

source§

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

source

pub fn into_linear<U, B>(self) -> Alpha<Luma<Linear<S::WhitePoint>, U>, B>
where S::TransferFn: IntoLinear<U, T>, B: FromStimulus<A>,

Convert the color to linear luminance with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{SrgbLumaa, LinLumaa};

let linear: LinLumaa<_, f32> = SrgbLumaa::new(96u8, 38).into_linear();

See the transfer function types in the encoding module for details and performance characteristics.

source

pub fn from_linear<U, B>( color: Alpha<Luma<Linear<S::WhitePoint>, U>, B>, ) -> Self
where S::TransferFn: FromLinear<U, T>, A: FromStimulus<B>,

Convert linear luminance to non-linear luminance with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{SrgbLumaa, LinLumaa};

let encoded = SrgbLumaa::<u8>::from_linear(LinLumaa::new(0.95f32, 0.75));

See the transfer function types in the encoding module for details and performance characteristics.

source§

impl<Wp, T, A> Alpha<Luma<Linear<Wp>, T>, A>

source

pub fn into_encoding<U, B, St>(self) -> Alpha<Luma<St, U>, B>
where St: LumaStandard<WhitePoint = Wp>, St::TransferFn: FromLinear<T, U>, B: FromStimulus<A>,

Convert a linear color to a different encoding with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{SrgbLumaa, LinLumaa};

let encoded: SrgbLumaa<u8> = LinLumaa::new(0.95f32, 0.75).into_encoding();

See the transfer function types in the encoding module for details and performance characteristics.

source

pub fn from_encoding<U, B, St>(color: Alpha<Luma<St, U>, B>) -> Self
where St: LumaStandard<WhitePoint = Wp>, St::TransferFn: IntoLinear<T, U>, A: FromStimulus<B>,

Convert to linear luminance from a different encoding with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{SrgbLumaa, LinLumaa};

let linear = LinLumaa::<_, f32>::from_encoding(SrgbLumaa::new(96u8, 38));

See the transfer function types in the encoding module for details and performance characteristics.

source§

impl<S, T, A> Alpha<Luma<S, &T>, &A>

source

pub fn copied(&self) -> Alpha<Luma<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Luma<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, T, A> Alpha<Luma<S, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Luma<S, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Luma<S, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Luma<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Luma<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, Ct, Ca> Alpha<Luma<S, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Luma<S, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Luma<S, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<S, T, A> Alpha<Luma<S, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Luma<S, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Luma<S, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, S>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<Wp, T, A> Alpha<Luv<Wp, T>, A>

Luva implementations.

source

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

Create a CIE L*u*v* color with transparency.

source

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

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

source

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

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

source§

impl<Wp, T, A> Alpha<Luv<Wp, &T>, &A>

source

pub fn copied(&self) -> Alpha<Luv<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Luv<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, T, A> Alpha<Luv<Wp, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Luv<Wp, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Luv<Wp, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Luv<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Luv<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, Ct, Ca> Alpha<Luv<Wp, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Luv<Wp, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Luv<Wp, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<Wp, T, A> Alpha<Luv<Wp, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Luv<Wp, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Luv<Wp, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, Wp>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Okhsl<T>, A>

Okhsla implementations.

source

pub fn new<H: Into<OklabHue<T>>>( hue: H, saturation: T, lightness: T, alpha: A, ) -> Self

Create an Okhsl color with transparency.

source

pub const fn new_const( hue: OklabHue<T>, saturation: T, lightness: T, alpha: A, ) -> Self

Create an Okhsla color. This is the same as Okhsla::new without the generic hue type. It’s temporary until const fn supports traits.

source

pub fn into_format<U, B>(self) -> Alpha<Okhsl<U>, B>
where U: FromStimulus<T> + FromAngle<T>, B: FromStimulus<A>,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Okhsl<U>, B>) -> Self
where T: FromStimulus<U> + FromAngle<U>, A: FromStimulus<B>,

Convert from another component type.

source

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

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

source

pub fn from_components<H: Into<OklabHue<T>>>( (hue, saturation, lightness, alpha): (H, T, T, A), ) -> Self

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

source§

impl<T, A> Alpha<Okhsl<&T>, &A>

source

pub fn copied(&self) -> Alpha<Okhsl<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Okhsl<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Okhsl<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Okhsl<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Okhsl<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Okhsl<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Okhsl<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Okhsl<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Okhsl<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Okhsl<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Okhsl<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Okhsl<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Okhsl<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Okhsv<T>, A>

Hsva implementations.

source

pub fn new<H: Into<OklabHue<T>>>( hue: H, saturation: T, value: T, alpha: A, ) -> Self

Create an Okhsv color with transparency.

source

pub const fn new_const( hue: OklabHue<T>, saturation: T, value: T, alpha: A, ) -> Self

Create an Okhsva color. This is the same as Okhsva::new without the generic hue type. It’s temporary until const fn supports traits.

source

pub fn into_format<U, B>(self) -> Alpha<Okhsv<U>, B>
where U: FromStimulus<T> + FromAngle<T>, B: FromStimulus<A>,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Okhsv<U>, B>) -> Self
where T: FromStimulus<U> + FromAngle<U>, A: FromStimulus<B>, U: Zero + MinMax,

Convert from another component type.

source

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

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

source

pub fn from_components<H: Into<OklabHue<T>>>( (hue, saturation, value, alpha): (H, T, T, A), ) -> Self

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

source§

impl<T, A> Alpha<Okhsv<&T>, &A>

source

pub fn copied(&self) -> Alpha<Okhsv<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Okhsv<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Okhsv<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Okhsv<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Okhsv<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Okhsv<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Okhsv<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Okhsv<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Okhsv<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Okhsv<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Okhsv<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Okhsv<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Okhsv<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Okhwb<T>, A>

Okhwba implementations.

source

pub fn new<H: Into<OklabHue<T>>>( hue: H, whiteness: T, blackness: T, alpha: A, ) -> Self

Create an Okhwb color with transparency.

source

pub const fn new_const( hue: OklabHue<T>, whiteness: T, blackness: T, alpha: A, ) -> Self

Create an Okhwba color. This is the same as Okhwba::new without the generic hue type. It’s temporary until const fn supports traits.

source

pub fn into_format<U, B>(self) -> Alpha<Okhwb<U>, B>
where U: FromStimulus<T> + FromAngle<T>, B: FromStimulus<A>,

Convert into another component type.

source

pub fn from_format<U, B>(color: Alpha<Okhwb<U>, B>) -> Self
where T: FromStimulus<U> + FromAngle<U>, A: FromStimulus<B>,

Convert from another component type.

source

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

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

source

pub fn from_components<H: Into<OklabHue<T>>>( (hue, whiteness, blackness, alpha): (H, T, T, A), ) -> Self

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

source§

impl<T, A> Alpha<Okhwb<&T>, &A>

source

pub fn copied(&self) -> Alpha<Okhwb<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Okhwb<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Okhwb<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Okhwb<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Okhwb<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Okhwb<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Okhwb<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Okhwb<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Okhwb<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Okhwb<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Okhwb<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Okhwb<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Okhwb<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Oklab<T>, A>

Oklaba implementations.

source

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

Create an Oklab color with transparency.

source

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

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

source

pub fn from_components((l, a, b, alpha): (T, T, T, A)) -> Self

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

source§

impl<T, A> Alpha<Oklab<&T>, &A>

source

pub fn copied(&self) -> Alpha<Oklab<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Oklab<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Oklab<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Oklab<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Oklab<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Oklab<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Oklab<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Oklab<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Oklab<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Oklab<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Oklab<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Oklab<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Oklab<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<T, A> Alpha<Oklch<T>, A>

Oklcha implementations.

source

pub fn new<H: Into<OklabHue<T>>>(l: T, chroma: T, hue: H, alpha: A) -> Self

Create an Oklch color with transparency.

source

pub const fn new_const(l: T, chroma: T, hue: OklabHue<T>, alpha: A) -> Self

Create an Oklcha color. This is the same as Oklcha::new without the generic hue type. It’s temporary until const fn supports traits.

source

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

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

source

pub fn from_components<H: Into<OklabHue<T>>>( (l, chroma, hue, alpha): (T, T, H, A), ) -> Self

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

source§

impl<T, A> Alpha<Oklch<&T>, &A>

source

pub fn copied(&self) -> Alpha<Oklch<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Oklch<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<T, A> Alpha<Oklch<&mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Oklch<T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Oklch<&T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Oklch<T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Oklch<T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Ct, Ca> Alpha<Oklch<Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Oklch<&<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Oklch<&mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<T, A> Alpha<Oklch<Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Oklch<T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Oklch<T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>(&mut self, range: R) -> Iter<Iter<Drain<'_, T>>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<S, T, A> Alpha<Rgb<S, T>, A>

Rgba implementations.

source

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

Non-linear RGB.

source

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

Convert the RGBA components into other number types.

use palette::Srgba;

let rgba_u8: Srgba<u8> = Srgba::new(0.3, 0.7, 0.2, 0.5).into_format();

See also into_linear and into_encoding for a faster option if you need to change between linear and non-linear encoding at the same time.

source

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

Convert the RGBA components from other number types.

use palette::Srgba;

let rgba_u8 = Srgba::<u8>::from_format(Srgba::new(0.3, 0.7, 0.2, 0.5));

See also from_linear and from_encoding for a faster option if you need to change between linear and non-linear encoding at the same time.

source

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

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

source

pub fn from_components((red, green, blue, alpha): (T, T, T, A)) -> Self

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

source§

impl<S> Alpha<Rgb<S, u8>, u8>

source

pub fn into_u32<O>(self) -> u32
where O: ComponentOrder<Rgba<S, u8>, u32>,

Convert to a packed u32 with with specifiable component order.

use palette::{rgb, Srgba};

let integer = Srgba::new(96u8, 127, 0, 255).into_u32::<rgb::channels::Argb>();
assert_eq!(0xFF607F00, integer);

It’s also possible to use From and Into, which defaults to the 0xRRGGBBAA component order:

use palette::Srgba;

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

See Packed for more details.

source

pub fn from_u32<O>(color: u32) -> Self
where O: ComponentOrder<Rgba<S, u8>, u32>,

Convert from a packed u32 with specifiable component order.

use palette::{rgb, Srgba};

let rgba = Srgba::from_u32::<rgb::channels::Argb>(0xFF607F00);
assert_eq!(Srgba::new(96u8, 127, 0, 255), rgba);

It’s also possible to use From and Into, which defaults to the 0xRRGGBBAA component order:

use palette::Srgba;

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

See Packed for more details.

source§

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

source

pub fn into_linear<U, B>(self) -> Alpha<Rgb<Linear<S::Space>, U>, B>
where S::TransferFn: IntoLinear<U, T>, B: FromStimulus<A>,

Convert the color to linear RGB with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{Srgba, LinSrgba};

let linear: LinSrgba<f32> = Srgba::new(96u8, 127, 0, 38).into_linear();

See the transfer function types in the encoding module for details and performance characteristics.

source

pub fn from_linear<U, B>(color: Alpha<Rgb<Linear<S::Space>, U>, B>) -> Self
where S::TransferFn: FromLinear<U, T>, A: FromStimulus<B>,

Convert linear RGB to non-linear RGB with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{Srgba, LinSrgba};

let encoded = Srgba::<u8>::from_linear(LinSrgba::new(0.95f32, 0.90, 0.30, 0.75));

See the transfer function types in the encoding module for details and performance characteristics.

source§

impl<S: RgbSpace, T, A> Alpha<Rgb<Linear<S>, T>, A>

source

pub fn into_encoding<U, B, St>(self) -> Alpha<Rgb<St, U>, B>
where St: RgbStandard<Space = S>, St::TransferFn: FromLinear<T, U>, B: FromStimulus<A>,

Convert a linear color to a different encoding with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{Srgba, LinSrgba};

let encoded: Srgba<u8> = LinSrgba::new(0.95f32, 0.90, 0.30, 0.75).into_encoding();

See the transfer function types in the encoding module for details and performance characteristics.

source

pub fn from_encoding<U, B, St>(color: Alpha<Rgb<St, U>, B>) -> Self
where St: RgbStandard<Space = S>, St::TransferFn: IntoLinear<T, U>, A: FromStimulus<B>,

Convert RGB from a different encoding to linear with transparency.

Some transfer functions allow the component type to be converted at the same time. This is usually offered with increased performance, compared to using into_format.

use palette::{Srgba, LinSrgba};

let linear = LinSrgba::<f32>::from_encoding(Srgba::new(96u8, 127, 0, 38));

See the transfer function types in the encoding module for details and performance characteristics.

source§

impl<S, T, A> Alpha<Rgb<S, &T>, &A>

source

pub fn copied(&self) -> Alpha<Rgb<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Rgb<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, T, A> Alpha<Rgb<S, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Rgb<S, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Rgb<S, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Rgb<S, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Rgb<S, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<S, Ct, Ca> Alpha<Rgb<S, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Rgb<S, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Rgb<S, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<S, T, A> Alpha<Rgb<S, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Rgb<S, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Rgb<S, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, S>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<Wp, T, A> Alpha<Xyz<Wp, T>, A>

Xyza implementations.

source

pub const fn new(x: T, y: T, z: T, alpha: A) -> Self

Create a CIE XYZ color with transparency.

source

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

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

source

pub fn from_components((x, y, z, alpha): (T, T, T, A)) -> Self

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

source

pub fn with_white_point<NewWp>(self) -> Alpha<Xyz<NewWp, T>, A>

Changes the reference white point without changing the color value.

This function doesn’t change the numerical values, and thus the color it represents in an absolute sense. However, the appearance of the color may not be the same when observed with the new white point. The effect would be similar to taking a photo with an incorrect white balance.

See chromatic_adaptation for operations that can change the white point while preserving the color’s appearance.

source§

impl<Wp, T, A> Alpha<Xyz<Wp, &T>, &A>

source

pub fn copied(&self) -> Alpha<Xyz<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Xyz<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, T, A> Alpha<Xyz<Wp, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Xyz<Wp, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Xyz<Wp, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Xyz<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Xyz<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, Ct, Ca> Alpha<Xyz<Wp, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Xyz<Wp, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Xyz<Wp, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<Wp, T, A> Alpha<Xyz<Wp, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Xyz<Wp, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Xyz<Wp, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, Wp>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

source§

impl<Wp, T, A> Alpha<Yxy<Wp, T>, A>

Yxya implementations.

source

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

Create a CIE Yxy color with 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((x, y, luma, alpha): (T, T, T, A)) -> Self

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

source

pub fn with_white_point<NewWp>(self) -> Alpha<Yxy<NewWp, T>, A>

Changes the reference white point without changing the color value.

This function doesn’t change the numerical values, and thus the color it represents in an absolute sense. However, the appearance of the color may not be the same when observed with the new white point. The effect would be similar to taking a photo with an incorrect white balance.

See chromatic_adaptation for operations that can change the white point while preserving the color’s appearance.

source§

impl<Wp, T, A> Alpha<Yxy<Wp, &T>, &A>

source

pub fn copied(&self) -> Alpha<Yxy<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Yxy<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, T, A> Alpha<Yxy<Wp, &mut T>, &mut A>

source

pub fn set(&mut self, value: Alpha<Yxy<Wp, T>, A>)

Update this color with new values.

source

pub fn as_refs(&self) -> Alpha<Yxy<Wp, &T>, &A>

Borrow this color’s components as shared references.

source

pub fn copied(&self) -> Alpha<Yxy<Wp, T>, A>
where T: Copy, A: Copy,

Get an owned, copied version of this color.

source

pub fn cloned(&self) -> Alpha<Yxy<Wp, T>, A>
where T: Clone, A: Clone,

Get an owned, cloned version of this color.

source§

impl<Wp, Ct, Ca> Alpha<Yxy<Wp, Ct>, Ca>

source

pub fn get<'a, I, T, A>( &'a self, index: I, ) -> Option<Alpha<Yxy<Wp, &<I as SliceIndex<[T]>>::Output>, &<I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsRef<[T]>, Ca: AsRef<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, with references to the components at index. See slice::get for details.

source

pub fn get_mut<'a, I, T, A>( &'a mut self, index: I, ) -> Option<Alpha<Yxy<Wp, &mut <I as SliceIndex<[T]>>::Output>, &mut <I as SliceIndex<[A]>>::Output>>
where T: 'a, A: 'a, Ct: AsMut<[T]>, Ca: AsMut<[A]>, I: SliceIndex<[T]> + SliceIndex<[A]> + Clone,

Get a color, or slice of colors, that allows modifying the components at index. See slice::get_mut for details.

source§

impl<Wp, T, A> Alpha<Yxy<Wp, Vec<T>>, Vec<A>>

source

pub fn with_capacity(capacity: usize) -> Self

Create a struct of vectors with a minimum capacity. See Vec::with_capacity for details.

source

pub fn push(&mut self, value: Alpha<Yxy<Wp, T>, A>)

Push an additional color’s components onto the component vectors. See Vec::push for details.

source

pub fn pop(&mut self) -> Option<Alpha<Yxy<Wp, T>, A>>

Pop a color’s components from the component vectors. See Vec::pop for details.

source

pub fn clear(&mut self)

Clear the component vectors. See Vec::clear for details.

source

pub fn drain<R>( &mut self, range: R, ) -> Iter<Iter<Drain<'_, T>, Wp>, Drain<'_, A>>
where R: RangeBounds<usize> + Clone,

Return an iterator that moves colors out of the specified range.

Trait Implementations§

source§

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

source§

type Epsilon = <T as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
source§

fn default_epsilon() -> Self::Epsilon

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

fn abs_diff_eq(&self, other: &Self, epsilon: T::Epsilon) -> bool

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

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

The inverse of AbsDiffEq::abs_diff_eq.
source§

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

source§

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) -> Self::Output

Performs the + operation. Read more
source§

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

source§

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>) -> Self::Output

Performs the + operation. Read more
source§

impl<T, C> AddAssign<T> for Alpha<C, T>
where T: AddAssign + Clone, 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: AddAssign,

source§

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

Performs the += operation. Read more
source§

impl<C> ArrayCast for Alpha<C, <<C as ArrayCast>::Array as ArrayExt>::Item>
where C: ArrayCast, C::Array: NextArray,

source§

type Array = <<C as ArrayCast>::Array as NextArray>::Next

The output type of a cast to an array.
source§

impl<C, T, const N: usize> AsMut<[T]> for Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn as_mut(&mut self) -> &mut [T]

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

impl<C, T, const N: usize> AsMut<[T; N]> for Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn as_mut(&mut self) -> &mut [T; N]

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

impl<C, T, const N: usize> AsMut<Alpha<C, T>> for [T; N]
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

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

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

impl<C, T, const N: usize> AsRef<[T]> for Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn as_ref(&self) -> &[T]

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

impl<C, T, const N: usize> AsRef<[T; N]> for Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn as_ref(&self) -> &[T; N]

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

impl<C, T, const N: usize> AsRef<Alpha<C, T>> for [T; N]
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

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

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

impl<C, T, const N: usize> Blend for Alpha<C, T>
where C: Premultiply<Scalar = T> + StimulusColor + ArrayCast<Array = [T; N]> + Clone, T: Real + Zero + One + MinMax + Clamp + Sqrt + Abs + Arithmetics + PartialCmp + Clone, T::Mask: LazySelect<T>,

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> BlendWith for Alpha<C, C::Scalar>
where C: Premultiply,

source§

type Color = C

The base color type of Self.
source§

fn blend_with<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§

impl<C, T> Clamp for Alpha<C, T>
where C: Clamp, T: Stimulus + Clamp,

source§

fn clamp(self) -> Self

Return a new color where out-of-bounds components have been changed to the nearest valid values. Read more
source§

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

source§

fn clamp_assign(&mut self)

Changes out-of-bounds components to the nearest valid values. Read more
source§

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

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<T, A> Complementary for Alpha<Cam16UcsJab<T>, A>

source§

fn complementary(self) -> Self

Return the complementary color of self. Read more
source§

impl<Wp, T, A> Complementary for Alpha<Lab<Wp, T>, A>
where Lab<Wp, T>: Complementary,

source§

fn complementary(self) -> Self

Return the complementary color of self. Read more
source§

impl<Wp, T, A> Complementary for Alpha<Luv<Wp, T>, A>
where Luv<Wp, T>: Complementary,

source§

fn complementary(self) -> Self

Return the complementary color of self. Read more
source§

impl<T, A> Complementary for Alpha<Oklab<T>, A>
where Oklab<T>: Complementary,

source§

fn complementary(self) -> Self

Return the complementary color of self. Read more
source§

impl<S, T> ComponentOrder<Alpha<Luma<S, T>, T>, [T; 2]> for Al

source§

fn pack(color: Lumaa<S, T>) -> [T; 2]

Combine the components of a color into the packed format.
source§

fn unpack(packed: [T; 2]) -> Lumaa<S, T>

Split the packed color into its separate components.
source§

impl<S, T> ComponentOrder<Alpha<Luma<S, T>, T>, [T; 2]> for La

source§

fn pack(color: Lumaa<S, T>) -> [T; 2]

Combine the components of a color into the packed format.
source§

fn unpack(packed: [T; 2]) -> Lumaa<S, T>

Split the packed color into its separate components.
source§

impl<S, T> ComponentOrder<Alpha<Rgb<S, T>, T>, [T; 4]> for Abgr

source§

fn pack(color: Rgba<S, T>) -> [T; 4]

Combine the components of a color into the packed format.
source§

fn unpack(packed: [T; 4]) -> Rgba<S, T>

Split the packed color into its separate components.
source§

impl<S, T> ComponentOrder<Alpha<Rgb<S, T>, T>, [T; 4]> for Argb

source§

fn pack(color: Rgba<S, T>) -> [T; 4]

Combine the components of a color into the packed format.
source§

fn unpack(packed: [T; 4]) -> Rgba<S, T>

Split the packed color into its separate components.
source§

impl<S, T> ComponentOrder<Alpha<Rgb<S, T>, T>, [T; 4]> for Bgra

source§

fn pack(color: Rgba<S, T>) -> [T; 4]

Combine the components of a color into the packed format.
source§

fn unpack(packed: [T; 4]) -> Rgba<S, T>

Split the packed color into its separate components.
source§

impl<S, T> ComponentOrder<Alpha<Rgb<S, T>, T>, [T; 4]> for Rgba

source§

fn pack(color: Rgba<S, T>) -> [T; 4]

Combine the components of a color into the packed format.
source§

fn unpack(packed: [T; 4]) -> Rgba<S, T>

Split the packed color into its separate components.
source§

impl<C> Compose for Alpha<C, C::Scalar>

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§

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

source§

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

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

impl<C: Default, T: Stimulus> Default for Alpha<C, T>

source§

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

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

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

source§

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<Self, D::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>,

source§

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) -> Self::Output

Performs the / operation. Read more
source§

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

source§

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>) -> Self::Output

Performs the / operation. Read more
source§

impl<T, C> DivAssign<T> for Alpha<C, T>
where T: DivAssign + Clone, 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: DivAssign,

source§

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

Performs the /= operation. Read more
source§

impl<Tc, Ta, C, A> Extend<Alpha<Tc, Ta>> for Alpha<C, A>
where C: Extend<Tc>, A: Extend<Ta>,

source§

fn extend<T: IntoIterator<Item = Alpha<Tc, Ta>>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl<'a, C, T, const N: usize> From<&'a [T; N]> for &'a Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(array: &'a [T; N]) -> Self

Converts to this type from the input type.
source§

impl<'a, C, T, const N: usize> From<&'a Alpha<C, T>> for &'a [T]
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(color: &'a Alpha<C, T>) -> Self

Converts to this type from the input type.
source§

impl<'a, C, T, const N: usize> From<&'a Alpha<C, T>> for &'a [T; N]
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(color: &'a Alpha<C, T>) -> Self

Converts to this type from the input type.
source§

impl<'a, C, T, const N: usize> From<&'a mut [T; N]> for &'a mut Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(array: &'a mut [T; N]) -> Self

Converts to this type from the input type.
source§

impl<'a, C, T, const N: usize> From<&'a mut Alpha<C, T>> for &'a mut [T]
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(color: &'a mut Alpha<C, T>) -> Self

Converts to this type from the input type.
source§

impl<'a, C, T, const N: usize> From<&'a mut Alpha<C, T>> for &'a mut [T; N]
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(color: &'a mut Alpha<C, T>) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16<T>, T>; N]> for Alpha<Cam16<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16Jch<T>, T>; N]> for Alpha<Cam16Jch<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16Jch<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16Jmh<T>, T>; N]> for Alpha<Cam16Jmh<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16Jmh<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16Jsh<T>, T>; N]> for Alpha<Cam16Jsh<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16Jsh<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16Qch<T>, T>; N]> for Alpha<Cam16Qch<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16Qch<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16Qmh<T>, T>; N]> for Alpha<Cam16Qmh<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16Qmh<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16Qsh<T>, T>; N]> for Alpha<Cam16Qsh<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16Qsh<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16UcsJab<T>, T>; N]> for Alpha<Cam16UcsJab<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16UcsJab<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Cam16UcsJmh<T>, T>; N]> for Alpha<Cam16UcsJmh<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Cam16UcsJmh<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<[Alpha<Hsl<S, T>, T>; N]> for Alpha<Hsl<S, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Hsl<S, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<[Alpha<Hsluv<Wp, T>, T>; N]> for Alpha<Hsluv<Wp, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Hsluv<Wp, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<[Alpha<Hsv<S, T>, T>; N]> for Alpha<Hsv<S, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Hsv<S, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<[Alpha<Hwb<S, T>, T>; N]> for Alpha<Hwb<S, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Hwb<S, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<[Alpha<Lab<Wp, T>, T>; N]> for Alpha<Lab<Wp, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Lab<Wp, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<[Alpha<Lch<Wp, T>, T>; N]> for Alpha<Lch<Wp, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Lch<Wp, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<[Alpha<Lchuv<Wp, T>, T>; N]> for Alpha<Lchuv<Wp, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Lchuv<Wp, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<[Alpha<Luma<S, T>, T>; N]> for Alpha<Luma<S, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Luma<S, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<[Alpha<Luv<Wp, T>, T>; N]> for Alpha<Luv<Wp, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Luv<Wp, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Okhsl<T>, T>; N]> for Alpha<Okhsl<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Okhsl<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Okhsv<T>, T>; N]> for Alpha<Okhsv<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Okhsv<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Okhwb<T>, T>; N]> for Alpha<Okhwb<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Okhwb<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Oklab<T>, T>; N]> for Alpha<Oklab<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Oklab<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<[Alpha<Oklch<T>, T>; N]> for Alpha<Oklch<V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Oklch<T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<[Alpha<Rgb<S, T>, T>; N]> for Alpha<Rgb<S, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Rgb<S, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<[Alpha<Xyz<Wp, T>, T>; N]> for Alpha<Xyz<Wp, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Xyz<Wp, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<[Alpha<Yxy<Wp, T>, T>; N]> for Alpha<Yxy<Wp, V>, V>
where [T; N]: Default, V: FromScalarArray<N, Scalar = T>,

source§

fn from(colors: [Alpha<Yxy<Wp, T>, T>; N]) -> Self

Converts to this type from the input type.
source§

impl<C, T, const N: usize> From<[T; N]> for Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(array: [T; N]) -> Self

Converts to this type from the input type.
source§

impl<S, T, H: Into<RgbHue<T>>, A> From<(H, T, T, A)> for Alpha<Hsl<S, T>, A>

source§

fn from(components: (H, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, H: Into<LuvHue<T>>, A> From<(H, T, T, A)> for Alpha<Hsluv<Wp, T>, A>

source§

fn from(components: (H, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<S, T, H: Into<RgbHue<T>>, A> From<(H, T, T, A)> for Alpha<Hsv<S, T>, A>

source§

fn from(components: (H, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<S, T, H: Into<RgbHue<T>>, A> From<(H, T, T, A)> for Alpha<Hwb<S, T>, A>

source§

fn from(components: (H, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<OklabHue<T>>, A> From<(H, T, T, A)> for Alpha<Okhsv<T>, A>

source§

fn from(components: (H, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<S, T, A> From<(T, A)> for Alpha<Luma<S, T>, A>

source§

fn from(components: (T, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<Cam16Hue<T>>, A> From<(T, T, H, A)> for Alpha<Cam16Jch<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<Cam16Hue<T>>, A> From<(T, T, H, A)> for Alpha<Cam16Jmh<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<Cam16Hue<T>>, A> From<(T, T, H, A)> for Alpha<Cam16Jsh<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<Cam16Hue<T>>, A> From<(T, T, H, A)> for Alpha<Cam16Qch<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<Cam16Hue<T>>, A> From<(T, T, H, A)> for Alpha<Cam16Qmh<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<Cam16Hue<T>>, A> From<(T, T, H, A)> for Alpha<Cam16Qsh<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<Cam16Hue<T>>, A> From<(T, T, H, A)> for Alpha<Cam16UcsJmh<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, H: Into<LabHue<T>>, A> From<(T, T, H, A)> for Alpha<Lch<Wp, T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, H: Into<LuvHue<T>>, A> From<(T, T, H, A)> for Alpha<Lchuv<Wp, T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, H: Into<OklabHue<T>>, A> From<(T, T, H, A)> for Alpha<Oklch<T>, A>

source§

fn from(components: (T, T, H, A)) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<(T, T, T, A)> for Alpha<Cam16UcsJab<T>, A>

source§

fn from(components: (T, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Lab<Wp, T>, A>

source§

fn from(components: (T, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Luv<Wp, T>, A>

source§

fn from(components: (T, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<(T, T, T, A)> for Alpha<Oklab<T>, A>

source§

fn from(components: (T, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<S, T, A> From<(T, T, T, A)> for Alpha<Rgb<S, T>, A>

source§

fn from(components: (T, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Xyz<Wp, T>, A>

source§

fn from(components: (T, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, A> From<(T, T, T, A)> for Alpha<Yxy<Wp, T>, A>

source§

fn from(components: (T, T, T, A)) -> Self

Converts to this type from the input type.
source§

impl<C> From<Alpha<C, <C as Premultiply>::Scalar>> for PreAlpha<C>
where C: Premultiply,

source§

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

Converts to this type from the input type.
source§

impl<C, T, const N: usize> From<Alpha<C, T>> for [T; N]
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

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

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16<T>, A>> for Alpha<Cam16Jch<T>, A>

source§

fn from(value: Alpha<Cam16<T>, A>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16<T>, A>> for Alpha<Cam16Jmh<T>, A>

source§

fn from(value: Alpha<Cam16<T>, A>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16<T>, A>> for Alpha<Cam16Jsh<T>, A>

source§

fn from(value: Alpha<Cam16<T>, A>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16<T>, A>> for Alpha<Cam16Qch<T>, A>

source§

fn from(value: Alpha<Cam16<T>, A>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16<T>, A>> for Alpha<Cam16Qmh<T>, A>

source§

fn from(value: Alpha<Cam16<T>, A>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16<T>, A>> for Alpha<Cam16Qsh<T>, A>

source§

fn from(value: Alpha<Cam16<T>, A>) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16<V>, V>> for [Alpha<Cam16<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16Jch<T>, A>> for (T, T, Cam16Hue<T>, A)

source§

fn from(color: Alpha<Cam16Jch<T>, A>) -> (T, T, Cam16Hue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16Jch<V>, V>> for [Alpha<Cam16Jch<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16Jch<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16Jmh<T>, A>> for (T, T, Cam16Hue<T>, A)

source§

fn from(color: Alpha<Cam16Jmh<T>, A>) -> (T, T, Cam16Hue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16Jmh<V>, V>> for [Alpha<Cam16Jmh<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16Jmh<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16Jsh<T>, A>> for (T, T, Cam16Hue<T>, A)

source§

fn from(color: Alpha<Cam16Jsh<T>, A>) -> (T, T, Cam16Hue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16Jsh<V>, V>> for [Alpha<Cam16Jsh<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16Jsh<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16Qch<T>, A>> for (T, T, Cam16Hue<T>, A)

source§

fn from(color: Alpha<Cam16Qch<T>, A>) -> (T, T, Cam16Hue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16Qch<V>, V>> for [Alpha<Cam16Qch<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16Qch<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16Qmh<T>, A>> for (T, T, Cam16Hue<T>, A)

source§

fn from(color: Alpha<Cam16Qmh<T>, A>) -> (T, T, Cam16Hue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16Qmh<V>, V>> for [Alpha<Cam16Qmh<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16Qmh<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16Qsh<T>, A>> for (T, T, Cam16Hue<T>, A)

source§

fn from(color: Alpha<Cam16Qsh<T>, A>) -> (T, T, Cam16Hue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16Qsh<V>, V>> for [Alpha<Cam16Qsh<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16Qsh<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16UcsJab<T>, A>> for (T, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16UcsJab<V>, V>> for [Alpha<Cam16UcsJab<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16UcsJab<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Cam16UcsJmh<T>, A>> for (T, T, Cam16Hue<T>, A)

source§

fn from(color: Alpha<Cam16UcsJmh<T>, A>) -> (T, T, Cam16Hue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Cam16UcsJmh<V>, V>> for [Alpha<Cam16UcsJmh<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Cam16UcsJmh<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<S, T, A> From<Alpha<Hsl<S, T>, A>> for (RgbHue<T>, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<Alpha<Hsl<S, V>, V>> for [Alpha<Hsl<S, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, A> From<Alpha<Hsluv<Wp, T>, A>> for (LuvHue<T>, T, T, A)

source§

fn from(color: Alpha<Hsluv<Wp, T>, A>) -> (LuvHue<T>, T, T, A)

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<Alpha<Hsluv<Wp, V>, V>> for [Alpha<Hsluv<Wp, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Hsluv<Wp, V>, V>) -> Self

Converts to this type from the input type.
source§

impl<S, T, A> From<Alpha<Hsv<S, T>, A>> for (RgbHue<T>, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<Alpha<Hsv<S, V>, V>> for [Alpha<Hsv<S, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

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

Converts to this type from the input type.
source§

impl<S, T, A> From<Alpha<Hwb<S, T>, A>> for (RgbHue<T>, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<Alpha<Hwb<S, V>, V>> for [Alpha<Hwb<S, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, A> From<Alpha<Lab<Wp, T>, A>> for (T, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<Alpha<Lab<Wp, V>, V>> for [Alpha<Lab<Wp, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, A> From<Alpha<Lch<Wp, T>, A>> for (T, T, LabHue<T>, A)

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<Alpha<Lch<Wp, V>, V>> for [Alpha<Lch<Wp, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, A> From<Alpha<Lchuv<Wp, T>, A>> for (T, T, LuvHue<T>, A)

source§

fn from(color: Alpha<Lchuv<Wp, T>, A>) -> (T, T, LuvHue<T>, A)

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<Alpha<Lchuv<Wp, V>, V>> for [Alpha<Lchuv<Wp, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Lchuv<Wp, V>, V>) -> Self

Converts to this type from the input type.
source§

impl<S, T, A> From<Alpha<Luma<S, T>, A>> for (T, A)

source§

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

Converts to this type from the input type.
source§

impl<S, T, O, P> From<Alpha<Luma<S, T>, T>> for Packed<O, P>
where O: ComponentOrder<Lumaa<S, T>, P>,

source§

fn from(color: Lumaa<S, T>) -> Self

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<Alpha<Luma<S, V>, V>> for [Alpha<Luma<S, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Luma<S, V>, V>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Luma<S, u8>, u8>> for u16

source§

fn from(color: Lumaa<S, u8>) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, A> From<Alpha<Luv<Wp, T>, A>> for (T, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<Alpha<Luv<Wp, V>, V>> for [Alpha<Luv<Wp, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Luv<Wp, V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Okhsl<V>, V>> for [Alpha<Okhsl<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Okhsl<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Okhsv<T>, A>> for (OklabHue<T>, T, T, A)

source§

fn from(color: Alpha<Okhsv<T>, A>) -> (OklabHue<T>, T, T, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Okhsv<V>, V>> for [Alpha<Okhsv<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Okhsv<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Okhwb<V>, V>> for [Alpha<Okhwb<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Okhwb<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Oklab<T>, A>> for (T, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Oklab<V>, V>> for [Alpha<Oklab<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Oklab<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, A> From<Alpha<Oklch<T>, A>> for (T, T, OklabHue<T>, A)

source§

fn from(color: Alpha<Oklch<T>, A>) -> (T, T, OklabHue<T>, A)

Converts to this type from the input type.
source§

impl<T, V, const N: usize> From<Alpha<Oklch<V>, V>> for [Alpha<Oklch<T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Oklch<V>, V>) -> Self

Converts to this type from the input type.
source§

impl<T, U> From<Alpha<Rgb<Linear<Srgb>, T>, T>> for Srgba<U>
where U: FromStimulus<T>, Srgb: RgbStandard<Space = Srgb> + FromLinear<T, U>,

source§

fn from(lin_srgba: LinSrgba<T>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Rgb<S>, f32>> for Rgba<S, f64>

source§

fn from(color: Rgba<S, f32>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Rgb<S>, f32>> for Rgba<S, u8>

source§

fn from(color: Rgba<S, f32>) -> Self

Converts to this type from the input type.
source§

impl<S, T, A> From<Alpha<Rgb<S, T>, A>> for (T, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<S, T, O, P> From<Alpha<Rgb<S, T>, T>> for Packed<O, P>
where O: ComponentOrder<Rgba<S, T>, P>,

source§

fn from(color: Rgba<S, T>) -> Self

Converts to this type from the input type.
source§

impl<S, T, V, const N: usize> From<Alpha<Rgb<S, V>, V>> for [Alpha<Rgb<S, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

fn from(color: Alpha<Rgb<S, V>, V>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Rgb<S, f64>, f64>> for Rgba<S, f32>

source§

fn from(color: Rgba<S, f64>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Rgb<S, f64>, f64>> for Rgba<S, u8>

source§

fn from(color: Rgba<S, f64>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Rgb<S, u8>, u8>> for Rgba<S, f32>

source§

fn from(color: Rgba<S, u8>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Rgb<S, u8>, u8>> for Rgba<S, f64>

source§

fn from(color: Rgba<S, u8>) -> Self

Converts to this type from the input type.
source§

impl<S> From<Alpha<Rgb<S, u8>, u8>> for u32

source§

fn from(color: Rgba<S, u8>) -> Self

Converts to this type from the input type.
source§

impl<T, U> From<Alpha<Rgb<Srgb, T>, T>> for LinSrgba<U>
where U: FromStimulus<T>, Srgb: RgbStandard<Space = Srgb> + IntoLinear<U, T>,

source§

fn from(srgba: Srgba<T>) -> Self

Converts to this type from the input type.
source§

impl<Wp, T, A> From<Alpha<Xyz<Wp, T>, A>> for (T, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<Alpha<Xyz<Wp, V>, V>> for [Alpha<Xyz<Wp, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, A> From<Alpha<Yxy<Wp, T>, A>> for (T, T, T, A)

source§

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

Converts to this type from the input type.
source§

impl<Wp, T, V, const N: usize> From<Alpha<Yxy<Wp, V>, V>> for [Alpha<Yxy<Wp, T>, T>; N]
where Self: Default, V: IntoScalarArray<N, Scalar = T>,

source§

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

Converts to this type from the input type.
source§

impl<C, T, const N: usize> From<Box<[T; N]>> for Box<Alpha<C, T>>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

fn from(array: Box<[T; N]>) -> Self

Converts to this type from the input type.
source§

impl<C, T: Stimulus> From<C> for Alpha<C, T>

source§

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

Converts to this type from the input type.
source§

impl<C> From<PreAlpha<C>> for Alpha<C, C::Scalar>
where C: Premultiply,

source§

fn from(color: PreAlpha<C>) -> Self

Converts to this type from the input type.
source§

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16Jch<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16Jmh<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16Jsh<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16Qch<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16Qmh<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16Qsh<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16UcsJab<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Cam16UcsJmh<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hsl<S, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hsluv<Wp, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hsv<S, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Hwb<S, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Lab<Wp, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Lch<Wp, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Lchuv<Wp, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Luma<S, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Luv<Wp, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Okhsl<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Okhsv<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Okhwb<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Oklab<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Oklch<T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<S, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Rgb<S, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Xyz<Wp, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<Wp, T, _C, _A> FromColorUnclamped<Alpha<_C, _A>> for Yxy<Wp, T>
where _C: IntoColorUnclamped<Self>,

source§

fn from_color_unclamped(color: Alpha<_C, _A>) -> Self

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

impl<C1: WithAlpha<T>, C2, T> FromColorUnclamped<C1> for Alpha<C2, T>
where C1::Color: IntoColorUnclamped<C2>,

source§

fn from_color_unclamped(other: C1) -> Self

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

impl<Tc, Ta, C, A> FromIterator<Alpha<Tc, Ta>> for Alpha<C, A>
where C: Extend<Tc> + FromIterator<Tc>, A: Extend<Ta> + Default,

source§

fn from_iter<T: IntoIterator<Item = Alpha<Tc, Ta>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

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

source§

type Hue = <C as GetHue>::Hue

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

fn get_hue(&self) -> C::Hue

Calculate a hue if possible. Read more
source§

impl<C, T> HasBoolMask for Alpha<C, T>
where C: HasBoolMask, T: HasBoolMask<Mask = C::Mask>,

source§

type Mask = <C as HasBoolMask>::Mask

The mask type to use for selecting Self values.
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jch<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16Jch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jch<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Jch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16Jch<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jch<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Jch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jmh<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16Jmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jmh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Jmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16Jmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jmh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Jmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jsh<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16Jsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jsh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Jsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16Jsh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jsh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Jsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Jsh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qch<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16Qch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qch<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Qch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16Qch<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qch<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Qch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qmh<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16Qmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qmh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Qmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16Qmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qmh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Qmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qsh<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16Qsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qsh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Qsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16Qsh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qsh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Qsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16Qsh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJab<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16UcsJab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJab<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16UcsJab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16UcsJab<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16UcsJab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJab<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16UcsJab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJab<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16UcsJab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJmh<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Cam16UcsJmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJmh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16UcsJmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Cam16UcsJmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16UcsJmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJmh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16UcsJmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Cam16UcsJmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16UcsJmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsl<S, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Hsl<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsl<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hsl<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a Alpha<Hsl<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsl<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsl<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hsl<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsl<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsl<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Hsluv<Wp, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Hsluv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Hsluv<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hsluv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a Alpha<Hsluv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsluv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Hsluv<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hsluv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Hsluv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsluv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsv<S, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Hsv<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsv<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hsv<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a Alpha<Hsv<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsv<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsv<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hsv<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hsv<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsv<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hwb<S, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Hwb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hwb<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hwb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a Alpha<Hwb<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hwb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hwb<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hwb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Hwb<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hwb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lab<Wp, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Lab<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lab<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Lab<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a Alpha<Lab<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lab<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lab<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Lab<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lab<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lab<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lch<Wp, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Lch<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lch<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Lch<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a Alpha<Lch<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lch<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lch<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Lch<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lch<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lch<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lchuv<Wp, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Lchuv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lchuv<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Lchuv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a Alpha<Lchuv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lchuv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lchuv<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Lchuv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Lchuv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lchuv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Luma<S, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Luma<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Luma<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Luma<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a Alpha<Luma<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Luma<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Luma<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Luma<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Luma<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Luma<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Luv<Wp, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Luv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Luv<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Luv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a Alpha<Luv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Luv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Luv<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Luv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Luv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Luv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsl<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Okhsl<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsl<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Okhsl<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Okhsl<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhsl<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsl<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Okhsl<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsl<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhsl<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsv<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Okhsv<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsv<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Okhsv<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Okhsv<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhsv<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsv<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Okhsv<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhsv<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhsv<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhwb<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Okhwb<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhwb<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Okhwb<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Okhwb<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhwb<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhwb<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Okhwb<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Okhwb<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhwb<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklab<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Oklab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklab<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Oklab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Oklab<[T; N]>, [T; N]>

source§

type Item = Alpha<Oklab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklab<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Oklab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklab<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Oklab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklch<&'b [T]>, &'b [T]>

source§

type Item = Alpha<Oklch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklch<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Oklch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a Alpha<Oklch<[T; N]>, [T; N]>

source§

type Item = Alpha<Oklch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklch<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Oklch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a Alpha<Oklch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Oklch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Rgb<S, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Rgb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Rgb<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Rgb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a Alpha<Rgb<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Rgb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Rgb<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Rgb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a Alpha<Rgb<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Rgb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Xyz<Wp, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Xyz<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Xyz<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Xyz<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a Alpha<Xyz<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Xyz<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Xyz<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Xyz<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Xyz<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Xyz<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Yxy<Wp, &'b [T]>, &'b [T]>

source§

type Item = Alpha<Yxy<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Yxy<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Yxy<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a Alpha<Yxy<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Yxy<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Yxy<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Yxy<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a Alpha<Yxy<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Yxy<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jch<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Jch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16Jch<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jch<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Jch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jmh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Jmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16Jmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jmh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Jmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jsh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Jsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16Jsh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jsh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Jsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Jsh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qch<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Qch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16Qch<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qch<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Qch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qmh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Qmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16Qmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qmh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Qmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qsh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16Qsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16Qsh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qsh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16Qsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16Qsh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16UcsJab<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16UcsJab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16UcsJab<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16UcsJab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16UcsJab<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16UcsJab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16UcsJab<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16UcsJab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16UcsJmh<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Cam16UcsJmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Cam16UcsJmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16UcsJmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16UcsJmh<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Cam16UcsJmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Cam16UcsJmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16UcsJmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hsl<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hsl<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a mut Alpha<Hsl<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsl<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hsl<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hsl<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hsl<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsl<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Hsluv<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hsluv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a mut Alpha<Hsluv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsluv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Hsluv<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hsluv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Hsluv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsluv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hsv<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hsv<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a mut Alpha<Hsv<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsv<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hsv<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hsv<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hsv<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsv<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hwb<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Hwb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a mut Alpha<Hwb<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hwb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hwb<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Hwb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Hwb<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hwb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lab<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Lab<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a mut Alpha<Lab<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lab<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lab<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Lab<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lab<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lab<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lch<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Lch<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a mut Alpha<Lch<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lch<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lch<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Lch<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lch<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lch<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lchuv<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Lchuv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a mut Alpha<Lchuv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lchuv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lchuv<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Lchuv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Lchuv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lchuv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Luma<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Luma<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a mut Alpha<Luma<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Luma<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Luma<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Luma<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Luma<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Luma<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Luv<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Luv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a mut Alpha<Luv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Luv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Luv<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Luv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Luv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Luv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhsl<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Okhsl<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Okhsl<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhsl<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhsl<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Okhsl<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhsl<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhsl<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhsv<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Okhsv<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Okhsv<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhsv<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhsv<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Okhsv<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhsv<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhsv<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhwb<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Okhwb<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Okhwb<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhwb<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhwb<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Okhwb<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Okhwb<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhwb<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Oklab<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Oklab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Oklab<[T; N]>, [T; N]>

source§

type Item = Alpha<Oklab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Oklab<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Oklab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Oklab<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Oklab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Oklch<&'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Oklch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T, const N: usize> IntoIterator for &'a mut Alpha<Oklch<[T; N]>, [T; N]>

source§

type Item = Alpha<Oklch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Oklch<Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Oklch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, T> IntoIterator for &'a mut Alpha<Oklch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Oklch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Rgb<S, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Rgb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T, const N: usize> IntoIterator for &'a mut Alpha<Rgb<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Rgb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Rgb<S, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Rgb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, S, T> IntoIterator for &'a mut Alpha<Rgb<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Rgb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Xyz<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Xyz<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a mut Alpha<Xyz<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Xyz<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Xyz<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Xyz<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Xyz<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Xyz<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Yxy<Wp, &'b mut [T]>, &'b mut [T]>

source§

type Item = Alpha<Yxy<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T, const N: usize> IntoIterator for &'a mut Alpha<Yxy<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Yxy<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Yxy<Wp, Box<[T]>>, Box<[T]>>

source§

type Item = Alpha<Yxy<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, 'b, Wp, T> IntoIterator for &'a mut Alpha<Yxy<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Yxy<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jch<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16Jch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jch<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16Jch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16Jch<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jch<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jch<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jmh<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16Jmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jmh<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16Jmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16Jmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jmh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jmh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jsh<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16Jsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jsh<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16Jsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16Jsh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Jsh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Jsh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Jsh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qch<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16Qch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qch<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16Qch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16Qch<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qch<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qch<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qmh<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16Qmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qmh<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16Qmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16Qmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qmh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qmh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qsh<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16Qsh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qsh<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16Qsh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16Qsh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16Qsh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16Qsh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16Qsh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16UcsJab<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16UcsJab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16UcsJab<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16UcsJab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16UcsJab<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16UcsJab<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16UcsJab<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16UcsJab<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16UcsJmh<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Cam16UcsJmh<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16UcsJmh<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Cam16UcsJmh<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Cam16UcsJmh<[T; N]>, [T; N]>

source§

type Item = Alpha<Cam16UcsJmh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Cam16UcsJmh<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Cam16UcsJmh<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hsl<S, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Hsl<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hsl<S, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Hsl<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<S, T, const N: usize> IntoIterator for Alpha<Hsl<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsl<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, S>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hsl<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsl<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, S>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Hsluv<Wp, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Hsluv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Hsluv<Wp, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Hsluv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<Wp, T, const N: usize> IntoIterator for Alpha<Hsluv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsluv<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, Wp>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Hsluv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsluv<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, Wp>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hsv<S, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Hsv<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hsv<S, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Hsv<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<S, T, const N: usize> IntoIterator for Alpha<Hsv<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hsv<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, S>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hsv<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hsv<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, S>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hwb<S, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Hwb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hwb<S, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Hwb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<S, T, const N: usize> IntoIterator for Alpha<Hwb<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Hwb<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, S>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Hwb<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Hwb<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, S>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lab<Wp, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Lab<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lab<Wp, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Lab<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<Wp, T, const N: usize> IntoIterator for Alpha<Lab<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lab<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, Wp>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lab<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lab<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, Wp>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lch<Wp, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Lch<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lch<Wp, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Lch<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<Wp, T, const N: usize> IntoIterator for Alpha<Lch<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lch<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, Wp>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lch<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lch<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, Wp>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lchuv<Wp, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Lchuv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lchuv<Wp, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Lchuv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<Wp, T, const N: usize> IntoIterator for Alpha<Lchuv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Lchuv<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, Wp>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Lchuv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Lchuv<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, Wp>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Luma<S, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Luma<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Luma<S, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Luma<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<S, T, const N: usize> IntoIterator for Alpha<Luma<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Luma<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, S>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Luma<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Luma<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, S>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Luv<Wp, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Luv<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Luv<Wp, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Luv<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<Wp, T, const N: usize> IntoIterator for Alpha<Luv<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Luv<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, Wp>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Luv<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Luv<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, Wp>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhsl<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Okhsl<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhsl<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Okhsl<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Okhsl<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhsl<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhsl<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhsl<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhsv<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Okhsv<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhsv<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Okhsv<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Okhsv<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhsv<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhsv<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhsv<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhwb<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Okhwb<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhwb<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Okhwb<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Okhwb<[T; N]>, [T; N]>

source§

type Item = Alpha<Okhwb<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Okhwb<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Okhwb<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Oklab<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Oklab<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Oklab<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Oklab<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Oklab<[T; N]>, [T; N]>

source§

type Item = Alpha<Oklab<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Oklab<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Oklab<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Oklch<&'a [T]>, &'a [T]>

source§

type Item = Alpha<Oklch<&'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Oklch<&'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Oklch<&'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, const N: usize> IntoIterator for Alpha<Oklch<[T; N]>, [T; N]>

source§

type Item = Alpha<Oklch<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for Alpha<Oklch<Vec<T>>, Vec<T>>

source§

type Item = Alpha<Oklch<T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Rgb<S, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Rgb<S, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, S>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Rgb<S, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Rgb<S, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, S>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<S, T, const N: usize> IntoIterator for Alpha<Rgb<S, [T; N]>, [T; N]>

source§

type Item = Alpha<Rgb<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, S>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, S, T> IntoIterator for Alpha<Rgb<S, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Rgb<S, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, S>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Xyz<Wp, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Xyz<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Xyz<Wp, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Xyz<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<Wp, T, const N: usize> IntoIterator for Alpha<Xyz<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Xyz<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, Wp>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Xyz<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Xyz<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, Wp>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Yxy<Wp, &'a [T]>, &'a [T]>

source§

type Item = Alpha<Yxy<Wp, &'a T>, &'a T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<Iter<'a, T>, Wp>, Iter<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Yxy<Wp, &'a mut [T]>, &'a mut [T]>

source§

type Item = Alpha<Yxy<Wp, &'a mut T>, &'a mut T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IterMut<'a, T>, Wp>, IterMut<'a, T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<Wp, T, const N: usize> IntoIterator for Alpha<Yxy<Wp, [T; N]>, [T; N]>

source§

type Item = Alpha<Yxy<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T, N>, Wp>, IntoIter<T, N>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, Wp, T> IntoIterator for Alpha<Yxy<Wp, Vec<T>>, Vec<T>>

source§

type Item = Alpha<Yxy<Wp, T>, T>

The type of the elements being iterated over.
source§

type IntoIter = Iter<Iter<IntoIter<T>, Wp>, IntoIter<T>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<C, T> IsWithinBounds for Alpha<C, T>
where C: IsWithinBounds, T: Stimulus + PartialCmp + IsWithinBounds<Mask = C::Mask>, C::Mask: BitAnd<Output = C::Mask>,

source§

fn is_within_bounds(&self) -> C::Mask

Check if the color’s components are within the expected range bounds. Read more
source§

impl<C: Lighten> Lighten for Alpha<C, C::Scalar>

source§

type Scalar = <C as Lighten>::Scalar

The type of the lighten modifier.
source§

fn lighten(self, factor: C::Scalar) -> Self

Scale the color towards the maximum lightness by factor, a value ranging from 0.0 to 1.0. Read more
source§

fn lighten_fixed(self, amount: C::Scalar) -> Self

Lighten the color by amount, a value ranging from 0.0 to 1.0. Read more
source§

impl<C: LightenAssign> LightenAssign for Alpha<C, C::Scalar>

source§

type Scalar = <C as LightenAssign>::Scalar

The type of the lighten modifier.
source§

fn lighten_assign(&mut self, factor: C::Scalar)

Scale the color towards the maximum lightness by factor, a value ranging from 0.0 to 1.0. Read more
source§

fn lighten_fixed_assign(&mut self, amount: C::Scalar)

Lighten the color by amount, a value ranging from 0.0 to 1.0. Read more
source§

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

source§

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

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

impl<C> Mix for Alpha<C, C::Scalar>
where C: Mix, C::Scalar: Zero + One + Clamp + Arithmetics + Clone,

source§

type Scalar = <C as Mix>::Scalar

The type of the mixing factor.
source§

fn mix(self, other: Self, factor: C::Scalar) -> Self

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

impl<C> MixAssign for Alpha<C, C::Scalar>

source§

type Scalar = <C as MixAssign>::Scalar

The type of the mixing factor.
source§

fn mix_assign(&mut self, other: Self, factor: C::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>,

source§

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) -> Self::Output

Performs the * operation. Read more
source§

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

source§

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>) -> Self::Output

Performs the * operation. Read more
source§

impl<T, C> MulAssign<T> for Alpha<C, T>
where T: MulAssign + Clone, 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: 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 T: PartialEq, C: PartialEq,

source§

fn eq(&self, other: &Self) -> bool

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

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

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

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

source§

fn default_max_relative() -> Self::Epsilon

The default relative tolerance for testing values that are far-apart. Read more
source§

fn relative_eq( &self, other: &Alpha<C, T>, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

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

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

The inverse of RelativeEq::relative_eq.
source§

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

source§

type Scalar = <C as Saturate>::Scalar

The type of the saturation modifier.
source§

fn saturate(self, factor: C::Scalar) -> Self

Scale the color towards the maximum saturation by factor, a value ranging from 0.0 to 1.0. Read more
source§

fn saturate_fixed(self, amount: C::Scalar) -> Self

Increase the saturation by amount, a value ranging from 0.0 to 1.0. Read more
source§

impl<C: SaturateAssign> SaturateAssign for Alpha<C, C::Scalar>

source§

type Scalar = <C as SaturateAssign>::Scalar

The type of the saturation modifier.
source§

fn saturate_assign(&mut self, factor: C::Scalar)

Scale the color towards the maximum saturation by factor, a value ranging from 0.0 to 1.0. Read more
source§

fn saturate_fixed_assign(&mut self, amount: C::Scalar)

Increase the saturation by amount, a value ranging from 0.0 to 1.0. Read more
source§

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

source§

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

The resulting type.
source§

fn saturating_add(self, c: T) -> Self::Output

Returns the sum of self and other, but saturates instead of overflowing.
source§

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

source§

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

The resulting type.
source§

fn saturating_add(self, other: Alpha<C, T>) -> Self::Output

Returns the sum of self and other, but saturates instead of overflowing.
source§

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

source§

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

The resulting type.
source§

fn saturating_sub(self, c: T) -> Self::Output

Returns the difference of self and other, but saturates instead of overflowing.
source§

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

source§

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

The resulting type.
source§

fn saturating_sub(self, other: Alpha<C, T>) -> Self::Output

Returns the difference of self and other, but saturates instead of overflowing.
source§

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

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

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

impl<C, T, H> SetHue<H> for Alpha<C, T>
where C: SetHue<H>,

source§

fn set_hue(&mut self, hue: H)

Change the hue to a specific value.
source§

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

source§

type Scalar = <C as ShiftHue>::Scalar

The type of the hue modifier.
source§

fn shift_hue(self, amount: Self::Scalar) -> Self

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

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

source§

type Scalar = <C as ShiftHueAssign>::Scalar

The type of the hue modifier.
source§

fn shift_hue_assign(&mut self, amount: Self::Scalar)

Shifts the hue by amount.
source§

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

source§

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) -> Self::Output

Performs the - operation. Read more
source§

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

source§

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>) -> Self::Output

Performs the - operation. Read more
source§

impl<T, C> SubAssign<T> for Alpha<C, T>
where T: SubAssign + Clone, 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: SubAssign,

source§

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

Performs the -= operation. Read more
source§

impl<T, A> Tetradic for Alpha<Cam16UcsJab<T>, A>
where Cam16UcsJab<T>: Tetradic, A: Clone,

source§

fn tetradic(self) -> (Self, Self, Self)

Return the three additional colors of a tetradic color scheme. Read more
source§

impl<Wp, T, A> Tetradic for Alpha<Lab<Wp, T>, A>
where Lab<Wp, T>: Tetradic, A: Clone,

source§

fn tetradic(self) -> (Self, Self, Self)

Return the three additional colors of a tetradic color scheme. Read more
source§

impl<Wp, T, A> Tetradic for Alpha<Luv<Wp, T>, A>
where Luv<Wp, T>: Tetradic, A: Clone,

source§

fn tetradic(self) -> (Self, Self, Self)

Return the three additional colors of a tetradic color scheme. Read more
source§

impl<T, A> Tetradic for Alpha<Oklab<T>, A>
where Oklab<T>: Tetradic, A: Clone,

source§

fn tetradic(self) -> (Self, Self, Self)

Return the three additional colors of a tetradic color scheme. Read more
source§

impl<'a, C, T, const N: usize> TryFrom<&'a [T]> for &'a Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

type Error = <&'a [T; N] as TryFrom<&'a [T]>>::Error

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

fn try_from(slice: &'a [T]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a, C, T, const N: usize> TryFrom<&'a mut [T]> for &'a mut Alpha<C, T>
where Alpha<C, T>: ArrayCast<Array = [T; N]>,

source§

type Error = <&'a mut [T; N] as TryFrom<&'a mut [T]>>::Error

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

fn try_from(slice: &'a mut [T]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<C, T> UlpsEq for Alpha<C, T>
where C: UlpsEq<Epsilon = T::Epsilon>, T: UlpsEq, T::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: Self::Epsilon, max_ulps: u32, ) -> bool

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

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

The inverse of UlpsEq::ulps_eq.
source§

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

source§

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

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

impl<C, A> WithAlpha<A> for Alpha<C, A>

source§

type Color = C

The opaque color type, without any transparency. Read more
source§

type WithAlpha = Alpha<C, A>

The color type with transparency applied. Read more
source§

fn with_alpha(self, alpha: A) -> Self::WithAlpha

Transforms the color into a transparent color with the provided alpha value. If Self already has a transparency, it is overwritten. Read more
source§

fn without_alpha(self) -> Self::Color

Removes the transparency from the color. If Self::Color has an internal transparency field, that field will be set to A::max_intensity() to make it opaque. Read more
source§

fn split(self) -> (Self::Color, A)

Splits the color into separate color and transparency values. Read more
source§

impl<C, T, H> WithHue<H> for Alpha<C, T>
where C: WithHue<H>,

source§

fn with_hue(self, hue: H) -> Self

Return a copy of self with a specific hue.
source§

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

source§

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

Auto Trait Implementations§

§

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

§

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> AdaptFrom<S, Swp, Dwp, T> for D
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, S: IntoColorUnclamped<Xyz<Swp, T>>, D: FromColorUnclamped<Xyz<Dwp, T>>,

source§

fn adapt_from_using<M>(color: S, method: M) -> D
where M: TransformMatrix<T>,

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

fn adapt_from(color: S) -> Self

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

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<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, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
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<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
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> FromAngle<T> for T

source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
source§

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

source§

fn from_color(t: T) -> U

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

impl<T, U> FromColorMut<U> for T
where T: FromColor<U> + ArrayCast + Clone, U: FromColor<T> + ArrayCast<Array = <T as ArrayCast>::Array> + Clone,

source§

fn from_color_mut(color: &mut U) -> FromColorMutGuard<'_, T, U>

Temporarily convert from another color type in place. Read more
source§

impl<T, U> FromColorUnclampedMut<U> for T
where T: FromColorUnclamped<U> + ArrayCast + Clone, U: FromColorUnclamped<T> + ArrayCast<Array = <T as ArrayCast>::Array> + Clone,

source§

fn from_color_unclamped_mut( color: &mut U, ) -> FromColorUnclampedMutGuard<'_, T, U>

Temporarily convert from another color type in place, without clamping. Read more
source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
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.

source§

impl<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

source§

fn into_angle(self) -> U

Performs a conversion into T.
source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

source§

fn into_color(self) -> U

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

impl<T, U> IntoColorMut<T> for U
where T: FromColorMut<U> + ?Sized, U: FromColorMut<T> + ?Sized,

source§

fn into_color_mut(&mut self) -> FromColorMutGuard<'_, T, U>

Temporarily convert to another color type in place. Read more
source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

source§

fn into_color_unclamped(self) -> U

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

impl<T, U> IntoColorUnclampedMut<T> for U

source§

fn into_color_unclamped_mut(&mut self) -> FromColorUnclampedMutGuard<'_, T, U>

Temporarily convert to another color type in place, without clamping. Read more
source§

impl<T> IntoStimulus<T> for T

source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
source§

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

source§

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, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
source§

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

source§

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> TryFromColor<T> for U
where U: FromColorUnclamped<T> + IsWithinBounds<Mask = bool>,

source§

fn try_from_color(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§

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

source§

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

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

source§

fn try_into_color(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
source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
source§

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