pub trait AsPixel:
Copy
+ Debug
+ Default
+ Send
+ Sync
+ 'static {
const NAME: &'static str;
const SIZE: u32;
const FORMAT: Format;
}
Expand description
AsPixel trait for extracting the underlying data representation information from a Rust data type
§Example
struct Rgba([u8; 4]);
Required Associated Constants§
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.