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) -> DeflateLevel
impl Copy for DeflateLevel
impl Debug for DeflateLevel
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for DeflateLevel
fn default() -> DeflateLevel
impl Eq for DeflateLevel
impl Ord for DeflateLevel
fn cmp(&self, other: &DeflateLevel) -> Ordering
impl PartialEq for DeflateLevel
fn eq(&self, other: &DeflateLevel) -> bool
impl PartialOrd for DeflateLevel
fn partial_cmp(&self, other: &DeflateLevel) -> 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DeflateLevel
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DeflateLevel
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DeflateLevel
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DeflateLevel
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for DeflateLevel
where
T: ?Sized,
impl<T> ToOwned for DeflateLevel
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DeflateLevel
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DeflateLevel
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DeflateLevel
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>