pub enum PixelFormat {
XRGB1555 = 0,
XRGB8888 = 1,
RGB565 = 2,
UNKNOWN = 2_147_483_647,
}
Variants§
Implementations§
Source§impl PixelFormat
impl PixelFormat
pub fn bit_per_pixel(self) -> usize
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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PixelFormat
impl Debug for PixelFormat
Source§impl From<PixelFormat> for retro_pixel_format
impl From<PixelFormat> for retro_pixel_format
Source§fn from(other: PixelFormat) -> Self
fn from(other: PixelFormat) -> Self
Converts to this type from the input type.
Source§impl From<retro_pixel_format> for PixelFormat
impl From<retro_pixel_format> for PixelFormat
Source§fn from(other: retro_pixel_format) -> Self
fn from(other: retro_pixel_format) -> Self
Converts to this type from the input type.
impl Copy 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 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