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
which provides for
tweaking the settings more finely.
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]
impl Clone for Compression
[src]fn clone(&self) -> Compression
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Compression
[src]
impl Default for Compression
[src]fn default() -> Compression
[src]
impl From<Compression> for CompressionOptions
[src]
impl From<Compression> for CompressionOptions
[src]fn from(compression: Compression) -> CompressionOptions
[src]
impl Hash for Compression
[src]
impl Hash for Compression
[src]impl Ord for Compression
[src]
impl Ord for Compression
[src]impl PartialEq<Compression> for Compression
[src]
impl PartialEq<Compression> for Compression
[src]impl PartialOrd<Compression> for Compression
[src]
impl PartialOrd<Compression> for Compression
[src]