[][src]Struct lz4::Encoder

pub struct Encoder<W> { /* fields omitted */ }

Methods

impl<W: Write> Encoder<W>[src][]

Immutable writer reference.

This function is used to flag that this session of compression is done with. The stream is finished up (final bytes are written), and then the wrapped writer is returned.

Trait Implementations

impl<W: Write> Write for Encoder<W>[src][+]

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

Like write, except that it writes from a slice of buffers. Read more

Attempts to write an entire buffer into this writer. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

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

Auto Trait Implementations

impl<W> Send for Encoder<W> where
    W: Send

impl<W> !Sync for Encoder<W>

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.