Enum DeflateLevel

#[non_exhaustive]
pub enum DeflateLevel

The level of compression used by the Deflate algorithm. It allows trading compression ratio for compression speed.

Variants

Fast = 1

The fastest possible compression mode.

Balanced = 6

The conserative choice between speed and ratio.

Best = 9

The best compression available with Deflate.

Trait Implementations

impl Clone for DeflateLevel

fn clone(&self) -> Self

impl Copy for DeflateLevel

impl Debug for DeflateLevel

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for DeflateLevel

fn default() -> Self

impl Eq for DeflateLevel

impl Ord for DeflateLevel

fn cmp(&self, other: &Self) -> Ordering

impl PartialEq for DeflateLevel

fn eq(&self, other: &Self) -> bool

impl PartialOrd for DeflateLevel

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

impl StructuralPartialEq for DeflateLevel

Auto Trait Implementations

impl Freeze for DeflateLevel

impl RefUnwindSafe for DeflateLevel

impl Send for DeflateLevel

impl Sync for DeflateLevel

impl Unpin for DeflateLevel

impl UnsafeUnpin for DeflateLevel

impl UnwindSafe for DeflateLevel

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DeflateLevel where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DeflateLevel where ST: ?Sized, DT: ?Sized,

impl<T> Any for DeflateLevel where T: 'static + ?Sized,

impl<T> Borrow<T> for DeflateLevel where T: ?Sized,

impl<T> BorrowMut<T> for DeflateLevel where T: ?Sized,

impl<T> CloneToUninit for DeflateLevel where T: Clone,

impl<T> From<T> for DeflateLevel

impl<T> Read<Exclusive, BecauseExclusive> for DeflateLevel where T: ?Sized,

impl<T> ToOwned for DeflateLevel where T: Clone,

impl<T, U> Into<U> for DeflateLevel where U: From<T>,

impl<T, U> TryFrom<U> for DeflateLevel where U: Into<T>,

impl<T, U> TryInto<U> for DeflateLevel where U: TryFrom<T>,