Enum psp::sys::DisplayPixelFormat
source · #[repr(u32)]pub enum DisplayPixelFormat {
Psm5650 = 0,
Psm5551 = 1,
Psm4444 = 2,
Psm8888 = 3,
}
Expand description
Framebuffer pixel formats.
Variants§
Psm5650 = 0
16-bit RGB 5:6:5
Psm5551 = 1
16-bit RGBA 5:5:5:1
Psm4444 = 2
16-bit RGBA 4:4:4:4
Psm8888 = 3
32-bit RGBA 8:8:8:8
Trait Implementations§
source§impl Clone for DisplayPixelFormat
impl Clone for DisplayPixelFormat
source§fn clone(&self) -> DisplayPixelFormat
fn clone(&self) -> DisplayPixelFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DisplayPixelFormat
impl Debug for DisplayPixelFormat
source§impl TryFrom<u32> for DisplayPixelFormat
impl TryFrom<u32> for DisplayPixelFormat
§type Error = TryFromPrimitiveError<DisplayPixelFormat>
type Error = TryFromPrimitiveError<DisplayPixelFormat>
The type returned in the event of a conversion error.
impl Copy for DisplayPixelFormat
Auto Trait Implementations§
impl Freeze for DisplayPixelFormat
impl RefUnwindSafe for DisplayPixelFormat
impl Send for DisplayPixelFormat
impl Sync for DisplayPixelFormat
impl Unpin for DisplayPixelFormat
impl UnwindSafe for DisplayPixelFormat
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