rustc_middle::ty::context

Type Alias InternedSet

source
type InternedSet<'tcx, T> = ShardedHashMap<InternedInSet<'tcx, T>, ()>;

Aliased Type§

enum InternedSet<'tcx, T> {
    Single(Lock<HashMap<InternedInSet<'tcx, T>, (), BuildHasherDefault<FxHasher>>>),
    Shards(Box<[CacheAligned<Lock<HashMap<InternedInSet<'tcx, T>, (), BuildHasherDefault<FxHasher>>>>; 32]>),
}

Variants§

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes

Size for each variant:

  • Single: 40 bytes
  • Shards: 8 bytes