Trait ColorComponents

Source
pub trait ColorComponents<Component, const N: usize>:
    ArrayCast<Array = [Component; N]>
    + Copy
    + 'static { }
Expand description

Types that may be cast to and from a fixed sized array.

Quantization functions in quantette operate over a color type/space. These types must implement ArrayCast where Component is the data type and N is the number of channels/dimensions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Color, Component, const N: usize> ColorComponents<Component, N> for Color
where Color: ArrayCast<Array = [Component; N]> + Copy + 'static,