#[non_exhaustive]#[repr(u16)]pub enum CompressionMethod {
Stored = 0,
Deflate = 8,
}Expand description
A supported ZIP compression method.
Cast to u16 to obtain the APPNOTE method number.
New methods can be added without changing the record or archive APIs.
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.
Trait Implementations§
Source§impl Clone for CompressionMethod
impl Clone for CompressionMethod
impl Copy for CompressionMethod
Source§impl Debug for CompressionMethod
impl Debug for CompressionMethod
Source§impl Default for CompressionMethod
impl Default for CompressionMethod
impl Eq for CompressionMethod
Source§impl PartialEq for CompressionMethod
impl PartialEq for CompressionMethod
impl StructuralPartialEq for CompressionMethod
Auto Trait Implementations§
impl Forget for CompressionMethod
impl Freeze for CompressionMethod
impl Move 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