Enum miniz_oxide::deflate::CompressionLevel [−][src]
#[repr(i32)] pub enum CompressionLevel { NoCompression, BestSpeed, BestCompression, UberCompression, DefaultLevel, DefaultCompression, }
How much processing the compressor should do to compress the data.
NoCompression
and Bestspeed
have special meanings, the other levels determine the number
of checks for matches in the hash chains and whether to use lazy or greedy parsing.
Variants
Don’t do any compression, only output uncompressed blocks.
Fast compression. Uses a special compression routine that is optimized for speed.
Slow/high compression. Do a lot of checks to try to find good matches.
Even more checks, can be very slow.
Default compromise between speed and compression.
Use the default compression level.
Trait Implementations
impl Clone for CompressionLevel
[src]
impl Clone for CompressionLevel
[src]fn clone(&self) -> CompressionLevel
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hash for CompressionLevel
[src]
impl Hash for CompressionLevel
[src]impl PartialEq<CompressionLevel> for CompressionLevel
[src]
impl PartialEq<CompressionLevel> for CompressionLevel
[src]fn eq(&self, other: &CompressionLevel) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl Copy for CompressionLevel
[src]
impl Eq for CompressionLevel
[src]
impl StructuralEq for CompressionLevel
[src]
impl StructuralPartialEq for CompressionLevel
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
The resulting type after obtaining ownership.