Enum deflate::Compression [] [src]

pub enum Compression {
    Fast,
    Default,
    Best,
}

An enum describing the level of compression to be used by the encoder

Higher compression ratios will take longer to encode.

This is a simplified interface to specify a compression level.

See also CompressionOptions

Variants

Fast minimal compression (CompressionOptions::fast()).

Default level (CompressionOptions::default()).

Higher compression level (CompressionOptions::high()).

Best in this context isn't actually the highest possible level the encoder can do, but is meant to emulate the Best setting in the Flate2 library.

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]

impl Debug for Compression
[src]

Formats the value using the given formatter.