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
NoneNo compression is to be performed, this may actually inflate data slightly when encoding.
FastOptimize for the best speed of encoding.
BestOptimize for the size of data being encoded.
DefaultChoose 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) -> bool1.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