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

No compression is to be performed, this may actually inflate data slightly when encoding.

Optimize for the best speed of encoding.

Optimize for the size of data being encoded.

Choose the default compression, a balance between speed and size.

Trait Implementations

impl Clone for Compression
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Compression
[src]