[][src]Struct compress::flate::Decoder

pub struct Decoder<R> {
    pub r: R,
    // some fields omitted
}

The structure that is used to decode an LZ4 data stream. This wraps an internal reader which is used as the source of all data.

Fields

r: R

Wrapped reader which is exposed to allow getting it back.

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 flate decoder which will read data from the specified source

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

Returns whether this deflate stream has reached the EOF marker

pub fn reset(&mut self)[src]

Resets this flate decoder. Note that this could corrupt an in-progress decoding of a stream.

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]