Enum rich_sdl2_rust::color::pixel::PixelFormatProperty
source · #[non_exhaustive]pub enum PixelFormatProperty {
Palette(Palette),
TrueColor {
red: PixelMask,
green: PixelMask,
blue: PixelMask,
alpha: PixelMask,
},
}
Expand description
A property of a pixel format.
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.
Palette(Palette)
A pixel format with a palette, so a pixel has an index of the palette.
TrueColor
Fields
A pixel has own color information.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PixelFormatProperty
impl !Send for PixelFormatProperty
impl !Sync for PixelFormatProperty
impl Unpin for PixelFormatProperty
impl UnwindSafe for PixelFormatProperty
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more