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_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.