pub fn compute_hash<T: Hash>(value: &T) -> u64Expand description
Computes a hash of a value for tracking in join indices.
ยงExample
use solverforge_scoring::constraint::shared::compute_hash;
let hash1 = compute_hash(&42);
let hash2 = compute_hash(&42);
assert_eq!(hash1, hash2);
let hash3 = compute_hash(&43);
assert_ne!(hash1, hash3);