pub trait NumHash {
    fn num_hash<H: Hasher>(&self, state: &mut H);
}
Expand description

Consistent hash implementation among different numeric types.

Required methods

Consistent Hash::hash on different numeric types.

This function will ensures if a.num_eq(b), then a.num_hash() and b.num_hash() manipulate the state in the same way.

Implementations on Foreign Types

Implementors