Enum miniz_oxide::deflate::core::CompressionStrategy
source · #[repr(i32)]pub enum CompressionStrategy {
Default = 0,
Filtered = 1,
HuffmanOnly = 2,
RLE = 3,
Fixed = 4,
}
Expand description
Strategy setting for compression.
The non-default settings offer some special-case compression variants.
Variants§
Default = 0
Don’t use any of the special strategies.
Filtered = 1
Only use matches that are at least 5 bytes long.
HuffmanOnly = 2
Don’t look for matches, only huffman encode the literals.
RLE = 3
Only look for matches with a distance of 1, i.e do run-length encoding only.
Fixed = 4
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 moresource§impl Debug for CompressionStrategy
impl Debug for CompressionStrategy
source§impl Hash for CompressionStrategy
impl Hash for CompressionStrategy
source§impl PartialEq for CompressionStrategy
impl PartialEq for CompressionStrategy
source§fn eq(&self, other: &CompressionStrategy) -> bool
fn eq(&self, other: &CompressionStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompressionStrategy
impl Eq for CompressionStrategy
impl StructuralPartialEq for CompressionStrategy
Auto Trait Implementations§
impl Freeze for CompressionStrategy
impl RefUnwindSafe for CompressionStrategy
impl Send for CompressionStrategy
impl Sync for CompressionStrategy
impl Unpin for CompressionStrategy
impl UnwindSafe for CompressionStrategy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more