Struct rustc_middle::ty::context::CtxtInterners [−][src]
pub struct CtxtInterners<'tcx> {Show 16 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>>, ()>,
const_allocation: ShardedHashMap<Interned<'tcx, Allocation>, ()>,
bound_variable_kinds: ShardedHashMap<Interned<'tcx, List<BoundVariableKind>>, ()>,
layout: ShardedHashMap<Interned<'tcx, Layout>, ()>,
adt_def: ShardedHashMap<Interned<'tcx, AdtDef>, ()>,
}Fields
arena: &'tcx WorkerLocal<Arena<'tcx>>The arena that types, regions, etc. are allocated from.
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>>, ()>const_allocation: ShardedHashMap<Interned<'tcx, Allocation>, ()>bound_variable_kinds: ShardedHashMap<Interned<'tcx, List<BoundVariableKind>>, ()>layout: ShardedHashMap<Interned<'tcx, Layout>, ()>adt_def: ShardedHashMap<Interned<'tcx, AdtDef>, ()>Implementations
fn intern_predicate(
&self,
kind: Binder<'tcx, PredicateKind<'tcx>>
) -> &'tcx PredicateInner<'tcx>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for CtxtInterners
impl<'tcx> !Send for CtxtInterners
impl<'tcx> !Sync for CtxtInterners
impl<'tcx> Unpin for CtxtInterners
impl<'tcx> !UnwindSafe for CtxtInterners
Blanket Implementations
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: 608 bytes
