Module rustc_data_structures::sharded
source · Enums
- An array of cache-line aligned inner locked structures with convenience methods. A single field is used when the compiler uses only one thread.
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.