pub fn load_dict(&mut self, dict: Bytes, key: K) -> Result<()> {
        self.dctx
            .load_dictionary(&dict)
            .map_err(code_to_err)
            .context("Failed to load zstd dictionary by reference")?;
        self.dict = dict;
        self.dict_key = Some(key);
        Ok(())
    }
/// Loads the given dict and associates it with the given key, whose meaning
/// is user-defined. Only frames with a matching key should be decompressed
/// with this dict.
Loads the given dict and associates it with the given key, whose meaning
is user-defined. Only frames with a matching key should be decompressed
with this dict.
Loads the given dict and associates it with the given key whose meaning is user - defined . Only frames with a matching key should be decompressed with this dict .
pub fn load_dict(&mut self, dict: Bytes, key: K) -> Result<()> {
        self.dctx
            .load_dictionary(&dict)
            .map_err(code_to_err)
            .context("Failed to load zstd dictionary by reference")?;
        self.dict = dict;
        self.dict_key = Some(key);
        Ok(())
    }
pub fn load_dict ( & mut self , dict : Bytes , key : K ) -> Result < ( ) > { self . dctx . load_dictionary ( & dict ) . map_err ( code_to_err ) . context ( " " ) ? ; self . dict = dict ; self . dict_key = Some ( key ) ; Ok ( ( ) ) }
Loads the given dict and associates it with the given key, whose meaning
is user-defined.
Loads the given dict and associates it with the given key whose meaning is user - defined .
&mut self
dict
Bytes
key
K
&mut self
dict
Bytes
key
K