pub struct EncoderDictionary<'a> { /* private fields */ }
Expand description

Prepared dictionary for compression

A dictionary can include its own copy of the data (if it is 'static), or it can merely point to a separate buffer (if it has another lifetime).

Implementations

Creates a prepared dictionary for compression.

This will copy the dictionary internally.

This is supported on crate feature experimental only.

Create prepared dictionary for compression

A level of 0 uses zstd’s default (currently 3).

Only available with the experimental feature. Use EncoderDictionary::copy otherwise.

Returns reference to CDict inner object

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.