Enum flate2::Compression
source · pub enum Compression {
None,
Fast,
Best,
Default,
}
Expand description
When compressing data, the compression level can be specified by a value in this enum.
Variants§
None
No compression is to be performed, this may actually inflate data slightly when encoding.
Fast
Optimize for the best speed of encoding.
Best
Optimize for the size of data being encoded.
Default
Choose the default compression, a balance between speed and size.
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 Default for Compression
impl Default for Compression
Default to Compression::Default.
source§fn default() -> Compression
fn default() -> Compression
Returns the “default value” for a type. Read more
source§impl PartialEq<Compression> for Compression
impl PartialEq<Compression> 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 ==
.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