Struct rustc_data_structures::sharded::Sharded [−][src]
pub struct Sharded<T> {
shards: [CacheAligned<Lock<T>>; 1],
}
Expand description
An array of cache-line aligned inner locked structures with convenience methods.
Fields
shards: [CacheAligned<Lock<T>>; 1]
Implementations
The shard is selected by hashing val
with FxHasher
.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Sharded<T>
impl<T> UnwindSafe for Sharded<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.