Enum rust_libretro::types::PixelFormat
source · pub enum PixelFormat {
XRGB1555,
XRGB8888,
RGB565,
UNKNOWN,
}
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 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 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.