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.
Variants
Fast
Fast minimal compression (CompressionOptions::fast()
).
Default
Default level (CompressionOptions::default()
).
Best
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]
fn clone(&self) -> Compression
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more