pub enum CompressionTypeVariant {
GZIP,
BZIP2,
XZ,
ZSTD,
UNCOMPRESSED,
}
Expand description
Readable file compression type
Variants§
GZIP
Gzip-ed file
BZIP2
Bzip2-ed file
XZ
Xz-ed file (liblzma)
ZSTD
Zstd-ed file,
UNCOMPRESSED
Uncompressed file
Implementations§
source§impl CompressionTypeVariant
impl CompressionTypeVariant
pub const fn is_compressed(&self) -> bool
Trait Implementations§
source§impl Clone for CompressionTypeVariant
impl Clone for CompressionTypeVariant
source§fn clone(&self) -> CompressionTypeVariant
fn clone(&self) -> CompressionTypeVariant
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 CompressionTypeVariant
impl Debug for CompressionTypeVariant
source§impl From<CompressionTypeVariant> for FileCompressionType
impl From<CompressionTypeVariant> for FileCompressionType
source§fn from(t: CompressionTypeVariant) -> Self
fn from(t: CompressionTypeVariant) -> Self
Converts to this type from the input type.
source§impl FromStr for CompressionTypeVariant
impl FromStr for CompressionTypeVariant
§type Err = ParserError
type Err = ParserError
The associated error which can be returned from parsing.
source§impl Hash for CompressionTypeVariant
impl Hash for CompressionTypeVariant
source§impl PartialEq<CompressionTypeVariant> for CompressionTypeVariant
impl PartialEq<CompressionTypeVariant> for CompressionTypeVariant
source§fn eq(&self, other: &CompressionTypeVariant) -> bool
fn eq(&self, other: &CompressionTypeVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToString for CompressionTypeVariant
impl ToString for CompressionTypeVariant
impl Copy for CompressionTypeVariant
impl Eq for CompressionTypeVariant
impl StructuralEq for CompressionTypeVariant
impl StructuralPartialEq for CompressionTypeVariant
Auto Trait Implementations§
impl RefUnwindSafe for CompressionTypeVariant
impl Send for CompressionTypeVariant
impl Sync for CompressionTypeVariant
impl Unpin for CompressionTypeVariant
impl UnwindSafe for CompressionTypeVariant
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.