#[non_exhaustive]pub enum PixelFormat {
R1,
R8,
Xrgb1111,
Rgb332,
Rgb565,
Rgb888,
Xrgb8888,
Argb8888,
}Expand description
A pixel format (gud.h GUD_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.
R1
1-bit monochrome.
R8
8-bit greyscale.
Xrgb1111
4-bit XRGB.
Rgb332
8-bit RGB (3-3-2).
Rgb565
16-bit RGB (5-6-5).
Rgb888
24-bit RGB (8-8-8).
Xrgb8888
32-bit XRGB (8-8-8-8).
Argb8888
32-bit ARGB (8-8-8-8).
Implementations§
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PixelFormat
Source§impl Debug for PixelFormat
impl Debug for PixelFormat
impl Eq for PixelFormat
Source§impl Format for PixelFormat
impl Format for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnsafeUnpin for PixelFormat
impl UnwindSafe for PixelFormat
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