Trait Primitive
pub trait Primitive: Copy + NumCast + Num + PartialOrd<Self> + Clone + Bounded
The type of each channel in a pixel. For example, this can be u8, u16, f32.
Associated Constants
const DEFAULT_MAX_VALUE: Self;The maximum value for this type of primitive within the context of color. For floats, the maximum is
1.0, whereas the integer types inherit their usual maximum values.const DEFAULT_MIN_VALUE: Self;The minimum value for this type of primitive within the context of color. For floats, the minimum is
0.0, whereas the integer types inherit their usual minimum values.