pub trait Primitive:
Copy
+ NumCast
+ Num
+ PartialOrd<Self>
+ 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.
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.