[][src]Struct lz4::Decoder

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

Methods

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

Creates a new encoder which will have its output written to the given output stream. The output stream can be re-acquired by calling finish()

Immutable reader reference.

pub fn finish(self) -> (R, Result<()>)[src]

Trait Implementations

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

🔬 This is a nightly-only experimental API. (iovec)

Like read, except that it reads into a slice of buffers. Read more

🔬 This is a nightly-only experimental API. (read_initializer)

Determines if this Reader can work with buffers of uninitialized memory. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read all bytes until EOF in this source, appending them to buf. Read more

Read the exact number of bytes required to fill buf. Read more

Creates a "by reference" adaptor for this instance of Read. Read more

Transforms this Read instance to an [Iterator] over its bytes. Read more

Creates an adaptor which will chain this stream with another. Read more

Creates an adaptor which will read at most limit bytes from it. Read more

Auto Trait Implementations

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

impl<R> !Sync for Decoder<R>

Blanket Implementations

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.