#[repr(u8)]pub enum PixelFormat {
ARGB8888 = 0,
ABGR8888 = 1,
RGBA8888 = 2,
BGRA8888 = 3,
RGB565 = 4,
BGR565 = 5,
RGB888 = 6,
FLEXIBLE = 7,
}Expand description
Pixel format
Variants§
ARGB8888 = 0
ARGB8888
ABGR8888 = 1
ABGR8888
RGBA8888 = 2
RGBA8888
BGRA8888 = 3
BGRA8888
RGB565 = 4
RGB565
BGR565 = 5
BGR565
RGB888 = 6
RGB888
FLEXIBLE = 7
Flexible
Implementations§
Source§impl PixelFormat
impl PixelFormat
Sourcepub fn bytes_per_pixel(&self) -> usize
pub fn bytes_per_pixel(&self) -> usize
Number of bytes per pixel
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§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 Format for PixelFormat
impl Format for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl Copy for PixelFormat
impl Eq 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 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