Struct rustc_middle::ty::CtxtInterners [−][src]
pub struct CtxtInterners<'tcx> {Show 15 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>, ()>,
}
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>, ()>
Implementations
fn intern_predicate(
&self,
kind: Binder<'tcx, PredicateKind<'tcx>>
) -> &'tcx PredicateInner<'tcx>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for CtxtInterners<'tcx>
impl<'tcx> !Send for CtxtInterners<'tcx>
impl<'tcx> !Sync for CtxtInterners<'tcx>
impl<'tcx> Unpin for CtxtInterners<'tcx>
impl<'tcx> !UnwindSafe for CtxtInterners<'tcx>
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: 568 bytes