[][src]Enum phar::Compression

pub enum Compression {
    None,
    Zlib(u32),
    Bzip(u32),
}

A file compression method.

Zlib and Bzip are available even without their corresponding features, because this is used in file encoding flags.

Variants

None

No compression

Zlib(u32)

zlib (gzip) compression

The inner u32 is the deflate compression level. This value is always zero when passed from the library; it is only used in the write module.

See flate2::Compression for details.

Bzip(u32)

bzip compression

The inner u32 is the bzip2 compression level. This value is always zero when passed from the library; it is only used in the write module.

See bzip2::Compression for details.

Trait Implementations

impl Clone for Compression[src]

impl Copy for Compression[src]

impl Debug for Compression[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.