pub fn convert_params_to_hash(&mut self) {
        if let Some(ref mut hash) = self.params {
            hash.clear();
        } else {
            self.params = Some(HashMap::new());
        }

        if let Some(ref mut h) = self.params {
            for i in 0..self.params_count {
                h.insert(self.param_names[i].clone(), self.param_values[i].clone());
            }
        }
    }
/// This function will convert parameters stored in param_names/param_values arrays into params hash
/// Useful if generally parsing is done when hash_mode is true. Hash operations are not the fastest, so
/// its best not to use this function.
This function will convert parameters stored in param_names/param_values arrays into params hash
Useful if generally parsing is done when hash_mode is true. Hash operations are not the fastest, so
its best not to use this function.
This function will convert parameters stored in param_names / param_values arrays into params hash Useful if generally parsing is done when hash_mode is true . Hash operations are not the fastest so its best not to use this function .
pub fn convert_params_to_hash(&mut self) {
        if let Some(ref mut hash) = self.params {
            hash.clear();
        } else {
            self.params = Some(HashMap::new());
        }
        if let Some(ref mut h) = self.params {
            for i in 0..self.params_count {
                h.insert(self.param_names[i].clone(), self.param_values[i].clone());
            }
        }
    }
pub fn convert_params_to_hash ( & mut self ) { if let Some ( ref mut hash ) = self . params { hash . clear ( ) ; } else { self . params = Some ( HashMap :: new ( ) ) ; } if let Some ( ref mut h ) = self . params { for i in 0 .. self . params_count { h . insert ( self . param_names [ i ] . clone ( ) , self . param_values [ i ] . clone ( ) ) ; } } }
This function will convert parameters stored in param_names/param_values arrays into params hash
Useful if generally parsing is done when hash_mode is true.
This function will convert parameters stored in param_names / param_values arrays into params hash Useful if generally parsing is done when hash_mode is true .
&mut self
&mut self