#[non_exhaustive]#[repr(i32)]pub enum ImagePacking {
Unknown = -1,
Single = 0,
Dual = 1,
Rgb = 2,
Bgr = 3,
Rgba = 4,
Abgr = 5,
Max = 6,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ImagePacking
impl ImagePacking
pub const Default3: ImagePacking = ImagePacking::Rgb
Source§impl ImagePacking
impl ImagePacking
pub const Default4: ImagePacking = ImagePacking::Rgba
Trait Implementations§
Source§impl Clone for ImagePacking
impl Clone for ImagePacking
Source§fn clone(&self) -> ImagePacking
fn clone(&self) -> ImagePacking
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 ImagePacking
impl Debug for ImagePacking
Source§impl Hash for ImagePacking
impl Hash for ImagePacking
Source§impl PartialEq for ImagePacking
impl PartialEq for ImagePacking
impl Copy for ImagePacking
impl Eq for ImagePacking
impl StructuralPartialEq for ImagePacking
Auto Trait Implementations§
impl Freeze for ImagePacking
impl RefUnwindSafe for ImagePacking
impl Send for ImagePacking
impl Sync for ImagePacking
impl Unpin for ImagePacking
impl UnwindSafe for ImagePacking
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