Struct rustc_middle::ty::context::CtxtInterners [−][src]
pub struct CtxtInterners<'tcx> {Show 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
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 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