[][src]Struct compress::zlib::Decoder

pub struct Decoder<R> { /* fields omitted */ }

Structure used to decode a ZLIB-encoded stream. The wrapped stream can be re-acquired through the unwrap() method.

Implementations

impl<R: Read> Decoder<R>[src]

pub fn new(r: R) -> Decoder<R>

Notable traits for Decoder<R>

impl<R: Read> Read for Decoder<R>
[src]

Creates a new ZLIB-stream decoder which will wrap the specified reader. This decoder also implements the Reader trait, and the underlying reader can be re-acquired through the unwrap method.

pub fn unwrap(self) -> R[src]

Destroys this decoder, returning the underlying reader.

pub fn eof(&self) -> bool[src]

Tests if this stream has reached the EOF point yet.

Trait Implementations

impl<R: Read> Read for Decoder<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Decoder<R> where
    R: RefUnwindSafe

impl<R> Send for Decoder<R> where
    R: Send

impl<R> Sync for Decoder<R> where
    R: Sync

impl<R> Unpin for Decoder<R> where
    R: Unpin

impl<R> UnwindSafe for Decoder<R> where
    R: UnwindSafe

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<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<T> ReadExact for T where
    T: Read
[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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]