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
sourceimpl Clone for CompressionStrategy
impl Clone for CompressionStrategy
sourcefn clone(&self) -> CompressionStrategy
fn clone(&self) -> CompressionStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompressionStrategy
impl Debug for CompressionStrategy
sourceimpl Hash for CompressionStrategy
impl Hash for CompressionStrategy
impl Copy for CompressionStrategy
impl Eq for CompressionStrategy
impl StructuralEq for CompressionStrategy
impl StructuralPartialEq for CompressionStrategy
Auto Trait Implementations
impl RefUnwindSafe for CompressionStrategy
impl Send for CompressionStrategy
impl Sync for CompressionStrategy
impl Unpin for CompressionStrategy
impl UnwindSafe for CompressionStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more