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.

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.

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.