#[repr(i32)]pub enum PixelFormat {
Rgb565 = 0,
Rgba8888 = 1,
Bgra8888 = 2,
}Variants§
Implementations§
Source§impl PixelFormat
impl PixelFormat
pub const MaxValue: PixelFormat = PixelFormat::Bgra8888
Sourcepub fn from_value(value: i32) -> Option<PixelFormat>
pub fn from_value(value: i32) -> Option<PixelFormat>
The member with the given numeric value, if one is defined.
Trait Implementations§
Source§impl BsonValue for PixelFormat
impl BsonValue for PixelFormat
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
impl Copy for PixelFormat
Source§impl Debug for PixelFormat
impl Debug for PixelFormat
Source§impl Default for PixelFormat
impl Default for PixelFormat
impl Eq for PixelFormat
Source§impl Hash for PixelFormat
impl Hash for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq 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 UnsafeUnpin 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