pub unsafe trait Texel: Copy + Default {
// Required method
fn image_format() -> ImageFormat;
}
Expand description
Plain old data that can be used to initialize a texture.
Required Methods§
fn image_format() -> ImageFormat
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.