Enum miniz_oxide::deflate::core::CompressionStrategy
source · #[repr(i32)]
pub enum CompressionStrategy {
Default,
Filtered,
HuffmanOnly,
RLE,
Fixed,
}
Expand description
Strategy setting for compression.
The non-default settings offer some special-case compression variants.
Variants§
Default
Don’t use any of the special strategies.
Filtered
Only use matches that are at least 5 bytes long.
HuffmanOnly
Don’t look for matches, only huffman encode the literals.
RLE
Only look for matches with a distance of 1, i.e do run-length encoding only.
Fixed
Only use static/fixed blocks. (Blocks using the default huffman codes specified in the deflate specification.)
Trait Implementations§
source§impl Clone for CompressionStrategy
impl Clone for CompressionStrategy
source§fn clone(&self) -> CompressionStrategy
fn clone(&self) -> CompressionStrategy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more