pub struct DCtx<'a>(_, _);
Expand description

A Decompression Context.

The lifetime references the potential dictionary used for this context.

If no dictionary was used, it will most likely be 'static.

Same as DStream.

Implementations

Wraps the ZSTD_decompressDCtx() function.

Wraps ZSTD_decompress_usingDict

Wraps the ZSTD_decompress_usingDDict() function.

Wraps the ZSTD_initCStream() function.

Initializes an existing DStream for decompression.

👎 Deprecated
Available on crate feature experimental only.

Wraps the ZSTD_initDStream_usingDict() function.

👎 Deprecated
Available on crate feature experimental only.

Wraps the ZSTD_initDStream_usingDDict() function.

Wraps the ZSTD_resetDStream() function.

Wraps the ZSTD_decompressStream() function.

Wraps the ZSTD_DStreamInSize() function.

Returns a hint for the recommended size of the input buffer for decompression.

Wraps the ZSTD_DStreamOutSize() function.

Returns a hint for the recommended size of the output buffer for decompression.

Wraps the ZSTD_sizeof_DCtx() function.

Available on crate feature experimental only.

Wraps the ZSTD_decompressBlock() function.

Available on crate feature experimental only.

Wraps the ZSTD_insertBlock() function.

Available on crate feature experimental only.

Creates a copy of this context.

This only works before any data has been decompressed. An error will be returned otherwise.

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. 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.