pub fn hash_weigthed_hashmap<Hidx>(&mut self, data: &HashMap<D, f64, Hidx>) 
                where   Hidx : std::hash::BuildHasher, 
    {
        let mut iter = data.iter();
        while let Some((key, weight)) = iter.next() {
            trace!(" retrieved key {:?} ", key);  
            // we got weight as something convertible to f64
            self.hash_item(*key, *weight);
        }
    }
/// computes set signature when set is given as an HashMap with weights corresponding to values.(equivalent to the method with and IndexMap)
/// This ensures that objects are assigned a weight only once, so that we really have a set of objects with weight associated.  
/// The raw method hash_item can be used with the constraint that objects are sent ONCE in the hash method.
computes set signature when set is given as an HashMap with weights corresponding to values.(equivalent to the method with and IndexMap)
This ensures that objects are assigned a weight only once, so that we really have a set of objects with weight associated.
The raw method hash_item can be used with the constraint that objects are sent ONCE in the hash method.
computes set signature when set is given as an HashMap with weights corresponding to values . ( equivalent to the method with and IndexMap ) This ensures that objects are assigned a weight only once so that we really have a set of objects with weight associated . The raw method hash_item can be used with the constraint that objects are sent ONCE in the hash method .
pub fn hash_weigthed_hashmap<Hidx>(&mut self, data: &HashMap<D, f64, Hidx>) 
                where   Hidx : std::hash::BuildHasher, 
    {
        let mut iter = data.iter();
        while let Some((key, weight)) = iter.next() {
            trace!(" retrieved key {:?} ", key);  
            // we got weight as something convertible to f64
            self.hash_item(*key, *weight);
        }
    }
pub fn hash_weigthed_hashmap < Hidx > ( & mut self , data : & HashMap < D , f64 , Hidx > ) where Hidx : std :: hash :: BuildHasher , { let mut iter = data . iter ( ) ; while let Some ( ( key , weight ) ) = iter . next ( ) { trace ! ( " " key ) ; // we got weight as something convertible to f64 self . hash_item ( * key , * weight ) ; } }
computes set signature when set is given as an HashMap with weights corresponding to values.
computes set signature when set is given as an HashMap with weights corresponding to values .
&mut self
data
&HashMap<D, f64, Hidx>