pub struct CCtx<'a>(_, _);

Implementations

Tries to create a new context.

Returns None if zstd returns a NULL pointer - may happen if allocation fails.

Wrap ZSTD_createCCtx

Panics

If zstd returns a NULL pointer.

Wraps the ZSTD_compressCCtx() function

Wraps the ZSTD_compress2() function.

Wraps the ZSTD_compress_usingDict() function.

Wraps the ZSTD_compress_usingCDict() function.

👎 Deprecated
Available on crate feature experimental only.

Wraps the ZSTD_initCStream_srcSize() function.

👎 Deprecated
Available on crate feature experimental only.

Wraps the ZSTD_initCStream_usingDict() function.

👎 Deprecated
Available on crate feature experimental only.

Wraps the ZSTD_initCStream_usingCDict() function.

Wraps the ZSTD_CCtx_refCDict() function.

Dictionary must outlive the context.

Wraps the ZSTD_compressStream2() function.

Wraps the ZSTD_flushStream() function.

Wraps the ZSTD_endStream() function.

👎 Deprecated
Available on crate feature experimental only.
Available on crate feature experimental only.

Creates a copy of this context.

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

Available on crate feature experimental only.

Wraps the ZSTD_getBlockSize() function.

Available on crate feature experimental only.

Wraps the ZSTD_compressBlock() function.

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.