pub trait Pixel:
Copy
+ Clone
+ Default
+ Send
+ Sync
+ PrimInt
+ Display
+ AsPrimitive<u16>
+ AsPrimitive<u32>
+ AsPrimitive<u64>
+ AsPrimitive<i32>
+ AsPrimitive<i64>
+ 'static {
// Required method
fn from_u32_or_max_value(value: u32) -> Self;
}Expand description
Represents a pixel that can be u8 or u16
Required Methods§
Sourcefn from_u32_or_max_value(value: u32) -> Self
fn from_u32_or_max_value(value: u32) -> Self
Converts from u32, saturating to the pixel type’s maximum on overflow.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".