Module sharded

Source

Enumsยง

Sharded
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 ๐Ÿ”’
SHARD_BITS ๐Ÿ”’

Traitsยง

IntoPointer

Functionsยง

get_shard_hash ๐Ÿ”’
Get a shard with a pre-computed hash value. If get_shard_by_value is ever used in combination with get_shard_by_hash on a single Sharded instance, then hash must be computed with FxHasher. Otherwise, hash can be computed with any hasher, so long as that hasher is used consistently for each Sharded instance.
make_hash
shards
table_entry ๐Ÿ”’

Type Aliasesยง

ShardedHashMap