Enum flate2::Compression
[−]
[src]
pub enum Compression { None, Fast, Best, Default, }
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
impl Copy for Compression
[src]
impl Clone for Compression
[src]
fn clone(&self) -> Compression
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Compression
[src]
fn eq(&self, __arg_0: &Compression) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Compression
[src]
impl Debug for Compression
[src]
impl Default for Compression
[src]
Default to Compression::Default.
fn default() -> Compression
[src]
Returns the "default value" for a type. Read more