Module rustc_data_structures::sharded
source · Structs
- An array of cache-line aligned inner locked structures with convenience methods.
Constants
Traits
Functions
- Get a shard with a pre-computed hash value. If
get_shard_by_valueis ever used in combination withget_shard_by_hashon a singleShardedinstance, thenhashmust be computed withFxHasher. Otherwise,hashcan be computed with any hasher, so long as that hasher is used consistently for eachShardedinstance.