type Prob = u8;
Trait Implementations§
source§impl Enlargeable for u8
impl Enlargeable for u8
source§impl FromPrimitive<f32> for u8
impl FromPrimitive<f32> for u8
source§fn from_primitive(float: f32) -> Self
fn from_primitive(float: f32) -> Self
Converts from any pixel component type to this type.
source§impl FromPrimitive<u16> for u8
impl FromPrimitive<u16> for u8
source§fn from_primitive(c16: u16) -> Self
fn from_primitive(c16: u16) -> Self
Converts from any pixel component type to this type.
source§impl Primitive for u8
impl Primitive for u8
source§const DEFAULT_MAX_VALUE: Self = 255u8
const DEFAULT_MAX_VALUE: Self = 255u8
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.source§const DEFAULT_MIN_VALUE: Self = 0u8
const DEFAULT_MIN_VALUE: Self = 0u8
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.