Function horde::sync_table::shard_index_by_hash [−][src]
pub fn shard_index_by_hash(hash: u64, shards: usize) -> usize
Get a suitable shard index from a hash when sharding the hash table.
shards
must be a power of 2.