pub enum BitmapPixelFormat {
ARGB32 = 0,
BGRA32 = 1,
ABGR32 = 2,
RGBA32 = 3,
RGB24 = 4,
BGR24 = 5,
A8 = 6,
}
Variants§
Implementations§
Source§impl BitmapPixelFormat
impl BitmapPixelFormat
pub fn bits_per_pixel(&self) -> usize
pub fn bytes_per_pixel(&self) -> usize
Trait Implementations§
Source§impl Clone for BitmapPixelFormat
impl Clone for BitmapPixelFormat
Source§fn clone(&self) -> BitmapPixelFormat
fn clone(&self) -> BitmapPixelFormat
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 BitmapPixelFormat
impl Debug for BitmapPixelFormat
Source§impl Display for BitmapPixelFormat
impl Display for BitmapPixelFormat
Source§impl PartialEq for BitmapPixelFormat
impl PartialEq for BitmapPixelFormat
impl Copy for BitmapPixelFormat
impl StructuralPartialEq for BitmapPixelFormat
Auto Trait Implementations§
impl Freeze for BitmapPixelFormat
impl RefUnwindSafe for BitmapPixelFormat
impl Send for BitmapPixelFormat
impl Sync for BitmapPixelFormat
impl Unpin for BitmapPixelFormat
impl UnwindSafe for BitmapPixelFormat
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