[][src]Enum deflate::Compression

pub enum Compression {

An enum describing the level of compression to be used by the encoder

Higher compression ratios will take longer to encode.

This is a simplified interface to specify a compression level.

See also CompressionOptions which provides for tweaking the settings more finely.



Fast minimal compression (CompressionOptions::fast()).


Default level (CompressionOptions::default()).


Higher compression level (CompressionOptions::high()).

Best in this context isn't actually the highest possible level the encoder can do, but is meant to emulate the Best setting in the Flate2 library.

Trait Implementations

impl Clone for Compression[src]

impl Copy for Compression[src]

impl Debug for Compression[src]

impl Default for Compression[src]

impl Eq for Compression[src]

impl From<Compression> for CompressionOptions[src]

impl Hash for Compression[src]

impl Ord for Compression[src]

impl PartialEq<Compression> for Compression[src]

impl PartialOrd<Compression> for Compression[src]

impl StructuralEq for Compression[src]

impl StructuralPartialEq for Compression[src]

Auto Trait Implementations

impl RefUnwindSafe for Compression

impl Send for Compression

impl Sync for Compression

impl Unpin for Compression

impl UnwindSafe for Compression

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.