Enum async_zip2::Compression
source · #[non_exhaustive]pub enum Compression {
Stored,
Deflate,
Deflate64,
Bz,
Lzma,
Zstd,
Xz,
}
Expand description
A compression method supported by this crate.
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 Compression
impl Clone for Compression
source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
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 Compression
impl Debug for Compression
source§impl From<&Compression> for u16
impl From<&Compression> for u16
source§fn from(compression: &Compression) -> u16
fn from(compression: &Compression) -> u16
Converts to this type from the input type.
source§impl From<Compression> for u16
impl From<Compression> for u16
source§fn from(compression: Compression) -> u16
fn from(compression: Compression) -> u16
Converts to this type from the input type.
source§impl PartialEq for Compression
impl PartialEq for Compression
source§fn eq(&self, other: &Compression) -> bool
fn eq(&self, other: &Compression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for Compression
impl TryFrom<u16> for Compression
impl Copy for Compression
impl Eq for Compression
impl StructuralEq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
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