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§
- SHARDS 🔒
Traits§
Functions§
- Get a shard with a pre-computed hash value. If
get_shard_by_value
is ever used in combination withget_shard_by_hash
on a singleSharded
instance, thenhash
must be computed withFxHasher
. Otherwise,hash
can be computed with any hasher, so long as that hasher is used consistently for eachSharded
instance.