[−][src]Struct libdeflater::CompressionLvl
Compression level used by a Compressor
instance.
Methods
impl CompressionLvl
[src]
pub fn new(level: i32) -> CompressionLvl
[src]
pub fn fastest() -> CompressionLvl
[src]
Returns the fastest compression level. This compression level offers the highest performance but lowest compression ratio.
pub fn best() -> CompressionLvl
[src]
Returns the best compression level, in terms of compression ratio. This compression level offers the best compression ratio but lowest performance.
ⓘImportant traits for CompressionLvlIterpub fn iter() -> CompressionLvlIter
[src]
ⓘImportant traits for CompressionLvlIter
Returns an iterator that emits all compression levels
supported by libdeflate
in ascending order.
Trait Implementations
impl Eq for CompressionLvl
[src]
impl Default for CompressionLvl
[src]
fn default() -> CompressionLvl
[src]
Returns the default compression level reccomended by libdeflate.
impl Clone for CompressionLvl
[src]
fn clone(&self) -> CompressionLvl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<CompressionLvl> for CompressionLvl
[src]
fn eq(&self, other: &CompressionLvl) -> bool
[src]
fn ne(&self, other: &CompressionLvl) -> bool
[src]
impl Copy for CompressionLvl
[src]
impl Debug for CompressionLvl
[src]
Auto Trait Implementations
impl Send for CompressionLvl
impl Unpin for CompressionLvl
impl Sync for CompressionLvl
impl UnwindSafe for CompressionLvl
impl RefUnwindSafe for CompressionLvl
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,