Struct DDict
pub struct DDict<'a>(/* private field */, /* private field */);
A digested decompression dictionary.
Implementations
impl DDict<'static>
fn create(dict_buffer: &[u8]) -> SelfPrepare a dictionary to decompress data.
The dictionary content will be copied internally, and does not need to be kept around.
Panics
If loading this dictionary failed. See
DDict::try_create.fn try_create(dict_buffer: &[u8]) -> Option<Self>Prepare a dictionary to decompress data.
The dictionary content will be copied internally, and does not need to be kept around. Returns
Noneif zstd could not load the dictionary, for instance because it starts with the dictionary magic number but its header is corrupt.
impl<'a> DDict<'a>
fn sizeof(&self) -> usizefn get_dict_id(&self) -> Option<NonZeroU32>Returns the dictionary ID for this dict.
Returns
Noneif this dictionary is empty or invalid.
Trait Implementations
impl<'a> Drop for DDict<'a>
fn drop(&mut self)