Struct rustc_middle::ty::CtxtInterners [−][src]
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<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.
Implementations
impl<'tcx> CtxtInterners<'tcx>[src]
fn new(arena: &'tcx WorkerLocal<Arena<'tcx>>) -> CtxtInterners<'tcx>[src]
fn intern_ty(&self, kind: TyKind<'tcx>) -> Ty<'tcx>[src]
Interns a type.
fn intern_predicate(
&self,
kind: Binder<PredicateKind<'tcx>>
) -> &'tcx PredicateInner<'tcx>[src]
&self,
kind: Binder<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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.