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
sourceimpl Clone for DeflateLevel
impl Clone for DeflateLevel
sourcefn clone(&self) -> DeflateLevel
fn clone(&self) -> DeflateLevel
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 moresourceimpl Debug for DeflateLevel
impl Debug for DeflateLevel
sourceimpl Default for DeflateLevel
impl Default for DeflateLevel
sourceimpl Ord for DeflateLevel
impl Ord for DeflateLevel
sourcefn cmp(&self, other: &DeflateLevel) -> Ordering
fn cmp(&self, other: &DeflateLevel) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DeflateLevel> for DeflateLevel
impl PartialEq<DeflateLevel> for DeflateLevel
sourcefn eq(&self, other: &DeflateLevel) -> bool
fn eq(&self, other: &DeflateLevel) -> bool
sourceimpl PartialOrd<DeflateLevel> for DeflateLevel
impl PartialOrd<DeflateLevel> for DeflateLevel
sourcefn partial_cmp(&self, other: &DeflateLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &DeflateLevel) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for DeflateLevel
impl Eq for DeflateLevel
impl StructuralEq for DeflateLevel
impl StructuralPartialEq for DeflateLevel
Auto Trait Implementations
impl RefUnwindSafe for DeflateLevel
impl Send for DeflateLevel
impl Sync for DeflateLevel
impl Unpin for DeflateLevel
impl UnwindSafe for DeflateLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more