Enum hapi_rs::geometry::ImagePacking
source · #[repr(i32)]
#[non_exhaustive]
pub enum ImagePacking {
Unknown,
Single,
Dual,
Rgb,
Bgr,
Rgba,
Abgr,
Max,
}
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 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 ImagePacking
impl Debug for ImagePacking
source§impl Hash for ImagePacking
impl Hash for ImagePacking
source§impl PartialEq<ImagePacking> for ImagePacking
impl PartialEq<ImagePacking> for ImagePacking
source§fn eq(&self, other: &ImagePacking) -> bool
fn eq(&self, other: &ImagePacking) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.