Enum libflate::gzip::CompressionLevel
source · pub enum CompressionLevel {
Fastest,
Slowest,
Unknown,
}
Expand description
Compression levels defined by the GZIP format.
Variants§
Fastest
Compressor used fastest algorithm.
Slowest
Compressor used maximum compression, slowest algorithm.
Unknown
No information about compression method.
Trait Implementations§
source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
source§fn clone(&self) -> CompressionLevel
fn clone(&self) -> CompressionLevel
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 CompressionLevel
impl Debug for CompressionLevel
source§impl From<CompressionLevel> for CompressionLevel
impl From<CompressionLevel> for CompressionLevel
source§fn from(f: CompressionLevel) -> Self
fn from(f: CompressionLevel) -> Self
Converts to this type from the input type.
source§impl Hash for CompressionLevel
impl Hash for CompressionLevel
source§impl PartialEq for CompressionLevel
impl PartialEq for CompressionLevel
source§fn eq(&self, other: &CompressionLevel) -> bool
fn eq(&self, other: &CompressionLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompressionLevel
impl StructuralPartialEq for CompressionLevel
Auto Trait Implementations§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnwindSafe for CompressionLevel
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