Enum libheif_rs::CompressionFormat
source · #[non_exhaustive]#[repr(C)]pub enum CompressionFormat {
Undefined = 0,
Hevc = 1,
Avc = 2,
Jpeg = 3,
Av1 = 4,
Vvc = 5,
Evc = 6,
Jpeg2000 = 7,
Uncompressed = 8,
Mask = 9,
}
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.
Undefined = 0
Rust equivalent of lh::heif_compression_format_heif_compression_undefined
Hevc = 1
Rust equivalent of lh::heif_compression_format_heif_compression_HEVC
Avc = 2
Rust equivalent of lh::heif_compression_format_heif_compression_AVC
Jpeg = 3
Rust equivalent of lh::heif_compression_format_heif_compression_JPEG
Av1 = 4
Rust equivalent of lh::heif_compression_format_heif_compression_AV1
Vvc = 5
Rust equivalent of lh::heif_compression_format_heif_compression_VVC
Evc = 6
Rust equivalent of lh::heif_compression_format_heif_compression_EVC
Jpeg2000 = 7
Rust equivalent of lh::heif_compression_format_heif_compression_JPEG2000
Uncompressed = 8
Rust equivalent of lh::heif_compression_format_heif_compression_uncompressed
Mask = 9
Rust equivalent of lh::heif_compression_format_heif_compression_mask
Implementations§
Trait Implementations§
source§impl Clone for CompressionFormat
impl Clone for CompressionFormat
source§fn clone(&self) -> CompressionFormat
fn clone(&self) -> CompressionFormat
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 CompressionFormat
impl Debug for CompressionFormat
source§impl Hash for CompressionFormat
impl Hash for CompressionFormat
source§impl PartialEq for CompressionFormat
impl PartialEq for CompressionFormat
source§fn eq(&self, other: &CompressionFormat) -> bool
fn eq(&self, other: &CompressionFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompressionFormat
impl Eq for CompressionFormat
impl StructuralPartialEq for CompressionFormat
Auto Trait Implementations§
impl Freeze for CompressionFormat
impl RefUnwindSafe for CompressionFormat
impl Send for CompressionFormat
impl Sync for CompressionFormat
impl Unpin for CompressionFormat
impl UnwindSafe for CompressionFormat
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