Enum pix_engine::image::PixelFormat [−][src]
#[non_exhaustive]
pub enum PixelFormat {
Rgb,
Rgba,
}Expand description
Format for interpreting bytes when using textures.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
8-bit Red, Green, and Blue
8-bit Red, Green, Blue, and Alpha
Implementations
Trait Implementations
Convert PixelFormat to SdlPixelFormat.
Auto Trait Implementations
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
Blanket Implementations
Mutably borrows from an owned value. Read more