pub trait Primitive:
Copy
+ NumCast
+ Num
+ PartialOrd
+ Clone
+ Bounded {
const DEFAULT_MAX_VALUE: Self;
const DEFAULT_MIN_VALUE: Self;
}
Expand description
The type of each channel in a pixel. For example, this can be u8
, u16
, f32
.
Required Associated Constants§
sourceconst DEFAULT_MAX_VALUE: Self
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.
sourceconst DEFAULT_MIN_VALUE: Self
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.
Object Safety§
This trait is not object safe.