#[non_exhaustive]#[repr(u16)]pub enum CompressionMethod {
Show 13 variants
None = 1,
Huffman = 2,
Fax3 = 3,
Fax4 = 4,
LZW = 5,
JPEG = 6,
ModernJPEG = 7,
Deflate = 8,
OldDeflate = 32_946,
PackBits = 32_773,
ZSTD = 50_000,
WebP = 50_001,
Unknown(u16),
}Expand description
See TIFF compression tags for reference.
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.
None = 1
Huffman = 2
Fax3 = 3
Fax4 = 4
LZW = 5
JPEG = 6
ModernJPEG = 7
Deflate = 8
OldDeflate = 32_946
PackBits = 32_773
ZSTD = 50_000
WebP = 50_001
Unknown(u16)
A custom compression method
Implementations§
Trait Implementations§
Source§impl Clone for CompressionMethod
impl Clone for CompressionMethod
Source§fn clone(&self) -> CompressionMethod
fn clone(&self) -> CompressionMethod
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 CompressionMethod
impl Debug for CompressionMethod
Source§impl Hash for CompressionMethod
impl Hash for CompressionMethod
Source§impl PartialEq for CompressionMethod
impl PartialEq for CompressionMethod
Source§impl TiffValue for CompressionMethod
impl TiffValue for CompressionMethod
const BYTE_LEN: u8 = <u16 as TiffValue>::BYTE_LEN
const FIELD_TYPE: Type = Type::SHORT
fn count(&self) -> usize
Source§fn data(&self) -> Cow<'_, [u8]>
fn data(&self) -> Cow<'_, [u8]>
Access this value as an contiguous sequence of bytes.
If their is no trivial representation, allocate it on the heap.
fn bytes(&self) -> usize
impl Copy for CompressionMethod
impl Eq for CompressionMethod
impl StructuralPartialEq for CompressionMethod
Auto Trait Implementations§
impl Freeze for CompressionMethod
impl RefUnwindSafe for CompressionMethod
impl Send for CompressionMethod
impl Sync for CompressionMethod
impl Unpin for CompressionMethod
impl UnsafeUnpin for CompressionMethod
impl UnwindSafe for CompressionMethod
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