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

Derived Implementations

impl Clone for Compression

fn clone(&self) -> Compression

fn clone_from(&mut self, source: &Self)

impl Copy for Compression