Enum tiff::encoder::compression::DeflateLevel
source · #[non_exhaustive]
pub enum DeflateLevel {
Fast,
Balanced,
Best,
}
Expand description
The level of compression used by the Deflate algorithm. It allows trading compression ratio for compression speed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fast
The fastest possible compression mode.
Balanced
The conserative choice between speed and ratio.
Best
The best compression available with Deflate.
Trait Implementations§
source§impl Clone for DeflateLevel
impl Clone for DeflateLevel
source§fn clone(&self) -> DeflateLevel
fn clone(&self) -> DeflateLevel
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 DeflateLevel
impl Debug for DeflateLevel
source§impl Default for DeflateLevel
impl Default for DeflateLevel
source§impl Ord for DeflateLevel
impl Ord for DeflateLevel
source§fn cmp(&self, other: &DeflateLevel) -> Ordering
fn cmp(&self, other: &DeflateLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DeflateLevel> for DeflateLevel
impl PartialEq<DeflateLevel> for DeflateLevel
source§fn eq(&self, other: &DeflateLevel) -> bool
fn eq(&self, other: &DeflateLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DeflateLevel> for DeflateLevel
impl PartialOrd<DeflateLevel> for DeflateLevel
source§fn partial_cmp(&self, other: &DeflateLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &DeflateLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more