pub enum ZipCompressionMethod {
Stored,
Deflated,
Bzip2,
Zstd,
Lzma,
Unknown(u16),
}Expand description
ZIP compression methods.
Variants§
Stored
Stored without compression.
Deflated
Deflate compression.
Bzip2
Bzip2 compression.
Zstd
Zstandard compression.
Lzma
LZMA compression.
Unknown(u16)
Unknown method code.
Implementations§
Trait Implementations§
Source§impl Clone for ZipCompressionMethod
impl Clone for ZipCompressionMethod
Source§fn clone(&self) -> ZipCompressionMethod
fn clone(&self) -> ZipCompressionMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ZipCompressionMethod
impl Debug for ZipCompressionMethod
Source§impl Default for ZipCompressionMethod
impl Default for ZipCompressionMethod
Source§fn default() -> ZipCompressionMethod
fn default() -> ZipCompressionMethod
Returns the “default value” for a type. Read more
Source§impl Display for ZipCompressionMethod
impl Display for ZipCompressionMethod
Source§impl Hash for ZipCompressionMethod
impl Hash for ZipCompressionMethod
Source§impl Ord for ZipCompressionMethod
impl Ord for ZipCompressionMethod
Source§fn cmp(&self, other: &ZipCompressionMethod) -> Ordering
fn cmp(&self, other: &ZipCompressionMethod) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ZipCompressionMethod
impl PartialEq for ZipCompressionMethod
Source§fn eq(&self, other: &ZipCompressionMethod) -> bool
fn eq(&self, other: &ZipCompressionMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ZipCompressionMethod
impl PartialOrd for ZipCompressionMethod
impl Copy for ZipCompressionMethod
impl Eq for ZipCompressionMethod
impl StructuralPartialEq for ZipCompressionMethod
Auto Trait Implementations§
impl Freeze for ZipCompressionMethod
impl RefUnwindSafe for ZipCompressionMethod
impl Send for ZipCompressionMethod
impl Sync for ZipCompressionMethod
impl Unpin for ZipCompressionMethod
impl UnsafeUnpin for ZipCompressionMethod
impl UnwindSafe for ZipCompressionMethod
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