Struct zstd::stream::raw::Encoder

source ·
pub struct Encoder<'a> { /* private fields */ }
Expand description

An in-memory encoder for streams of data.

Implementations§

Creates a new encoder.

Creates a new encoder initialized with the given dictionary.

Creates a new encoder using an existing EncoderDictionary.

Sets a compression parameter for this encoder.

Sets the size of the input expected by zstd.

May affect compression ratio.

It is an error to give an incorrect size (an error will be returned when closing the stream).

Trait Implementations§

Performs a single step of this operation. Read more
Flushes any internal buffer, if any. Read more
Finishes the operation, writing any footer if necessary. Read more
Prepares the operation for a new frame. Read more
Performs a single step of this operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.