Struct rustc_middle::ty::CtxtInterners[][src]

pub struct CtxtInterners<'tcx> {
Show 14 fields arena: &'tcx WorkerLocal<Arena<'tcx>>, type_: ShardedHashMap<Interned<'tcx, TyS<'tcx>>, ()>, type_list: ShardedHashMap<Interned<'tcx, List<Ty<'tcx>>>, ()>, substs: ShardedHashMap<Interned<'tcx, InternalSubsts<'tcx>>, ()>, canonical_var_infos: ShardedHashMap<Interned<'tcx, List<CanonicalVarInfo<'tcx>>>, ()>, region: ShardedHashMap<Interned<'tcx, RegionKind>, ()>, poly_existential_predicates: ShardedHashMap<Interned<'tcx, List<Binder<'tcx, ExistentialPredicate<'tcx>>>>, ()>, predicate: ShardedHashMap<Interned<'tcx, PredicateInner<'tcx>>, ()>, predicates: ShardedHashMap<Interned<'tcx, List<Predicate<'tcx>>>, ()>, projs: ShardedHashMap<Interned<'tcx, List<ProjectionKind>>, ()>, place_elems: ShardedHashMap<Interned<'tcx, List<PlaceElem<'tcx>>>, ()>, const_: ShardedHashMap<Interned<'tcx, Const<'tcx>>, ()>, allocation: ShardedHashMap<Interned<'tcx, Allocation>, ()>, bound_variable_kinds: ShardedHashMap<Interned<'tcx, List<BoundVariableKind>>, ()>,
}

Fields

arena: &'tcx WorkerLocal<Arena<'tcx>>

The arena that types, regions, etc. are allocated from.

type_: ShardedHashMap<Interned<'tcx, TyS<'tcx>>, ()>

Specifically use a speedy hash algorithm for these hash sets, since they’re accessed quite often.

type_list: ShardedHashMap<Interned<'tcx, List<Ty<'tcx>>>, ()>substs: ShardedHashMap<Interned<'tcx, InternalSubsts<'tcx>>, ()>canonical_var_infos: ShardedHashMap<Interned<'tcx, List<CanonicalVarInfo<'tcx>>>, ()>region: ShardedHashMap<Interned<'tcx, RegionKind>, ()>poly_existential_predicates: ShardedHashMap<Interned<'tcx, List<Binder<'tcx, ExistentialPredicate<'tcx>>>>, ()>predicate: ShardedHashMap<Interned<'tcx, PredicateInner<'tcx>>, ()>predicates: ShardedHashMap<Interned<'tcx, List<Predicate<'tcx>>>, ()>projs: ShardedHashMap<Interned<'tcx, List<ProjectionKind>>, ()>place_elems: ShardedHashMap<Interned<'tcx, List<PlaceElem<'tcx>>>, ()>const_: ShardedHashMap<Interned<'tcx, Const<'tcx>>, ()>allocation: ShardedHashMap<Interned<'tcx, Allocation>, ()>

Const allocations.

bound_variable_kinds: ShardedHashMap<Interned<'tcx, List<BoundVariableKind>>, ()>

Implementations

Interns a type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Layout

Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 528 bytes