[][src]Struct libdeflater::CompressionLvl

pub struct 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 CompressionLvlIter
pub fn iter() -> CompressionLvlIter[src]

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]

impl PartialEq<CompressionLvl> for CompressionLvl[src]

impl Copy for CompressionLvl[src]

impl Debug for CompressionLvl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]