[−][src]Trait rustc_middle::ty::context::Lift
A trait implemented for all X<'a> types that can be safely and
efficiently converted to X<'tcx> as long as they are part of the
provided TyCtxt<'tcx>.
This can be done, for example, for Ty<'tcx> or SubstsRef<'tcx>
by looking them up in their respective interners.
However, this is still not the best implementation as it does
need to compare the components, even for interned values.
It would be more efficient if TypedArena provided a way to
determine whether the address is in the allocated range.
None is returned if the value or one of the components is not part
of the provided context.
For Ty, None can be returned if either the type interner doesn't
contain the TyKind key or if the address of the interned
pointer differs. The latter case is possible if a primitive type,
e.g., () or u8, was interned in a different context.
Associated Types
Loading content...Required methods
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
Implementations on Foreign Types
impl<'tcx> Lift<'tcx> for ()[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for bool[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for usize[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for VariantIdx[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for u32[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for u64[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for String[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for FloatTy[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for InlineAsmOptions[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for InlineAsmTemplatePiece[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for NodeId[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Symbol[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Res[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for DefId[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for LocalDefId[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for HirId[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for LlvmInlineAsmInner[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for MatchSource[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Unsafety[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for InlineAsmRegOrRegClass[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Abi[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Span[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx, A: Lift<'tcx>, B: Lift<'tcx>> Lift<'tcx> for (A, B)[src]
type Lifted = (A::Lifted, B::Lifted)
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx, A: Lift<'tcx>, B: Lift<'tcx>, C: Lift<'tcx>> Lift<'tcx> for (A, B, C)[src]
type Lifted = (A::Lifted, B::Lifted, C::Lifted)
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx, T: Lift<'tcx>> Lift<'tcx> for Option<T>[src]
type Lifted = Option<T::Lifted>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx, T: Lift<'tcx>, E: Lift<'tcx>> Lift<'tcx> for Result<T, E>[src]
type Lifted = Result<T::Lifted, E::Lifted>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx, T: Lift<'tcx>> Lift<'tcx> for Box<T>[src]
type Lifted = Box<T::Lifted>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx, T: Lift<'tcx> + Clone> Lift<'tcx> for Rc<T>[src]
impl<'tcx, T: Lift<'tcx> + Clone> Lift<'tcx> for Arc<T>[src]
type Lifted = Arc<T::Lifted>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx, T: Lift<'tcx>> Lift<'tcx> for Vec<T>[src]
type Lifted = Vec<T::Lifted>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx, I: Idx, T: Lift<'tcx>> Lift<'tcx> for IndexVec<I, T>[src]
type Lifted = IndexVec<I, T::Lifted>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
Implementors
impl<'__lifted, N> Lift<'__lifted> for ImplSourceAutoImplData<N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceAutoImplData<N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceAutoImplData<N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceAutoImplData<N::Lifted>>
impl<'__lifted, N> Lift<'__lifted> for ImplSourceBuiltinData<N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceBuiltinData<N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceBuiltinData<N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceBuiltinData<N::Lifted>>
impl<'__lifted, T> Lift<'__lifted> for Normalize<T> where
T: Lift<'__lifted>, [src]
T: Lift<'__lifted>,
type Lifted = Normalize<T::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Normalize<T::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Normalize<T::Lifted>>
impl<'__lifted, T> Lift<'__lifted> for WithOptConstParam<T> where
T: Lift<'__lifted>, [src]
T: Lift<'__lifted>,
type Lifted = WithOptConstParam<T::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<WithOptConstParam<T::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<WithOptConstParam<T::Lifted>>
impl<'a, 'tcx> Lift<'tcx> for &'a Const<'a>[src]
type Lifted = &'tcx Const<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for &'a List<ExistentialPredicate<'a>>[src]
type Lifted = &'tcx List<ExistentialPredicate<'tcx>>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for &'a List<CanonicalVarInfo<'a>>[src]
type Lifted = &'tcx List<CanonicalVarInfo<'tcx>>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for &'a List<Predicate<'a>>[src]
type Lifted = &'tcx List<Predicate<'tcx>>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for &'a List<GenericArg<'a>>[src]
type Lifted = &'tcx List<GenericArg<'tcx>>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for &'a List<ProjectionKind>[src]
type Lifted = &'tcx List<ProjectionKind>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for &'a List<Ty<'a>>[src]
type Lifted = &'tcx List<Ty<'tcx>>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for &'a PredicateInner<'a>[src]
type Lifted = &'tcx PredicateInner<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for Adjust<'a>[src]
impl<'a, 'tcx> Lift<'tcx> for AutoBorrow<'a>[src]
type Lifted = AutoBorrow<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for ExistentialPredicate<'a>[src]
type Lifted = ExistentialPredicate<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for InstanceDef<'a>[src]
type Lifted = InstanceDef<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for PredicateAtom<'a>[src]
type Lifted = PredicateAtom<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for PredicateKind<'a>[src]
type Lifted = PredicateKind<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for TypeError<'a>[src]
type Lifted = TypeError<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for Adjustment<'a>[src]
type Lifted = Adjustment<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for OverloadedDeref<'a>[src]
type Lifted = OverloadedDeref<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for ClosureSubsts<'a>[src]
type Lifted = ClosureSubsts<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for ExistentialProjection<'a>[src]
type Lifted = ExistentialProjection<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for ExistentialTraitRef<'a>[src]
type Lifted = ExistentialTraitRef<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for FnSig<'a>[src]
impl<'a, 'tcx> Lift<'tcx> for GenSig<'a>[src]
impl<'a, 'tcx> Lift<'tcx> for GeneratorSubsts<'a>[src]
type Lifted = GeneratorSubsts<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for ParamEnv<'a>[src]
type Lifted = ParamEnv<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for ProjectionPredicate<'a>[src]
type Lifted = ProjectionPredicate<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<ProjectionPredicate<'tcx>>[src]
impl<'a, 'tcx> Lift<'tcx> for ProjectionTy<'a>[src]
type Lifted = ProjectionTy<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<ProjectionTy<'tcx>>[src]
impl<'a, 'tcx> Lift<'tcx> for SubtypePredicate<'a>[src]
type Lifted = SubtypePredicate<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<SubtypePredicate<'tcx>>[src]
impl<'a, 'tcx> Lift<'tcx> for TraitPredicate<'a>[src]
type Lifted = TraitPredicate<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<TraitPredicate<'tcx>>[src]
impl<'a, 'tcx> Lift<'tcx> for TraitRef<'a>[src]
type Lifted = TraitRef<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for GenericArg<'a>[src]
type Lifted = GenericArg<'tcx>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'a, 'tcx> Lift<'tcx> for Region<'a>[src]
impl<'a, 'tcx> Lift<'tcx> for Ty<'a>[src]
impl<'a, 'tcx, T: Lift<'tcx>> Lift<'tcx> for ParamEnvAnd<'a, T>[src]
type Lifted = ParamEnvAnd<'tcx, T::Lifted>
pub fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>[src]
impl<'tcx> Lift<'tcx> for CanonicalVarKind<'tcx>[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Certainty[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for BindingForm<'tcx>[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for FakeReadCause[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for MirPhase[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for RetagKind[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for ErrorHandled[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Mutability[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Reveal[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for StatementAsExpression[src]
type Lifted = StatementAsExpression
pub fn lift_to_tcx(self, _tcx: TyCtxt<'tcx>) -> Option<StatementAsExpression>[src]
impl<'tcx> Lift<'tcx> for AutoBorrowMutability[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for PointerCast[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for BindingMode[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for AdtKind[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for BoundRegion[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for ClosureKind[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for InferTy[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for IntVarValue[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Variance[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for CanonicalVarInfo<'tcx>[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Scope[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for CounterValueReference[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for ExpressionOperandId[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for InjectedExpressionId[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for InjectedExpressionIndex[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for MappedExpressionIndex[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for PredecessorCache[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for BlockTailInfo[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Local[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Promoted[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for SourceInfo[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for SourceScope[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for SourceScopeLocalData[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for IfExpressionCause[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for ImplSourceDiscriminantKindData[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for AssocItem[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for FreeRegion[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for ParamConst[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for ParamTy[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for Placeholder<BoundRegion>[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for RegionVid[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for UniverseIndex[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for UserTypeAnnotationIndex[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx> Lift<'tcx> for ProjectionKind[src]
type Lifted = Self
pub fn lift_to_tcx(self, _: TyCtxt<'tcx>) -> Option<Self>[src]
impl<'tcx, '__lifted> Lift<'__lifted> for ObligationCauseCode<'tcx>[src]
type Lifted = ObligationCauseCode<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ObligationCauseCode<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ObligationCauseCode<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for SelectionError<'tcx>[src]
type Lifted = SelectionError<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<SelectionError<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<SelectionError<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for OutlivesBound<'tcx>[src]
type Lifted = OutlivesBound<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<OutlivesBound<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<OutlivesBound<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for UserType<'tcx>[src]
type Lifted = UserType<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UserType<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UserType<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for CanonicalVarValues<'tcx>[src]
type Lifted = CanonicalVarValues<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<CanonicalVarValues<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<CanonicalVarValues<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for QueryRegionConstraints<'tcx>[src]
type Lifted = QueryRegionConstraints<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<QueryRegionConstraints<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<QueryRegionConstraints<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for MemberConstraint<'tcx>[src]
type Lifted = MemberConstraint<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<MemberConstraint<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<MemberConstraint<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for GlobalId<'tcx>[src]
type Lifted = GlobalId<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<GlobalId<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<GlobalId<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for DropckOutlivesResult<'tcx>[src]
type Lifted = DropckOutlivesResult<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<DropckOutlivesResult<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<DropckOutlivesResult<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for NormalizationResult<'tcx>[src]
type Lifted = NormalizationResult<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<NormalizationResult<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<NormalizationResult<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for AscribeUserType<'tcx>[src]
type Lifted = AscribeUserType<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<AscribeUserType<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<AscribeUserType<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for Eq<'tcx>[src]
type Lifted = Eq<'__lifted>
pub fn lift_to_tcx(self, __tcx: TyCtxt<'__lifted>) -> Option<Eq<'__lifted>>[src]
impl<'tcx, '__lifted> Lift<'__lifted> for ProvePredicate<'tcx>[src]
type Lifted = ProvePredicate<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ProvePredicate<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ProvePredicate<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for Subtype<'tcx>[src]
type Lifted = Subtype<'__lifted>
pub fn lift_to_tcx(self, __tcx: TyCtxt<'__lifted>) -> Option<Subtype<'__lifted>>[src]
impl<'tcx, '__lifted> Lift<'__lifted> for DerivedObligationCause<'tcx>[src]
type Lifted = DerivedObligationCause<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<DerivedObligationCause<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<DerivedObligationCause<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for MatchExpressionArmCause<'tcx>[src]
type Lifted = MatchExpressionArmCause<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<MatchExpressionArmCause<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<MatchExpressionArmCause<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for ObligationCause<'tcx>[src]
type Lifted = ObligationCause<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ObligationCause<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ObligationCause<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for ObligationCauseData<'tcx>[src]
type Lifted = ObligationCauseData<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ObligationCauseData<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ObligationCauseData<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for UnifyReceiverContext<'tcx>[src]
type Lifted = UnifyReceiverContext<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UnifyReceiverContext<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UnifyReceiverContext<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for TraitRefPrintOnlyTraitPath<'tcx>[src]
type Lifted = TraitRefPrintOnlyTraitPath<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<TraitRefPrintOnlyTraitPath<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<TraitRefPrintOnlyTraitPath<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for CanonicalUserTypeAnnotation<'tcx>[src]
type Lifted = CanonicalUserTypeAnnotation<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<CanonicalUserTypeAnnotation<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<CanonicalUserTypeAnnotation<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for Instance<'tcx>[src]
type Lifted = Instance<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Instance<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Instance<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for Predicate<'tcx>[src]
type Lifted = Predicate<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Predicate<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Predicate<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for TypeAndMut<'tcx>[src]
type Lifted = TypeAndMut<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<TypeAndMut<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<TypeAndMut<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for UserSelfTy<'tcx>[src]
type Lifted = UserSelfTy<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UserSelfTy<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UserSelfTy<'__lifted>>
impl<'tcx, '__lifted> Lift<'__lifted> for UserSubsts<'tcx>[src]
type Lifted = UserSubsts<'__lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UserSubsts<'__lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<UserSubsts<'__lifted>>
impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSource<'tcx, N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSource<'__lifted, N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSource<'__lifted, N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSource<'__lifted, N::Lifted>>
impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSourceClosureData<'tcx, N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceClosureData<'__lifted, N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceClosureData<'__lifted, N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceClosureData<'__lifted, N::Lifted>>
impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSourceFnPointerData<'tcx, N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceFnPointerData<'__lifted, N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceFnPointerData<'__lifted, N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceFnPointerData<'__lifted, N::Lifted>>
impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSourceGeneratorData<'tcx, N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceGeneratorData<'__lifted, N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceGeneratorData<'__lifted, N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceGeneratorData<'__lifted, N::Lifted>>
impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSourceObjectData<'tcx, N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceObjectData<'__lifted, N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceObjectData<'__lifted, N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceObjectData<'__lifted, N::Lifted>>
impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSourceTraitAliasData<'tcx, N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceTraitAliasData<'__lifted, N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceTraitAliasData<'__lifted, N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceTraitAliasData<'__lifted, N::Lifted>>
impl<'tcx, '__lifted, N> Lift<'__lifted> for ImplSourceUserDefinedData<'tcx, N> where
N: Lift<'__lifted>, [src]
N: Lift<'__lifted>,
type Lifted = ImplSourceUserDefinedData<'__lifted, N::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceUserDefinedData<'__lifted, N::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<ImplSourceUserDefinedData<'__lifted, N::Lifted>>
impl<'tcx, '__lifted, R> Lift<'__lifted> for QueryResponse<'tcx, R> where
R: Lift<'__lifted>, [src]
R: Lift<'__lifted>,
type Lifted = QueryResponse<'__lifted, R::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<QueryResponse<'__lifted, R::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<QueryResponse<'__lifted, R::Lifted>>
impl<'tcx, '__lifted, V> Lift<'__lifted> for Canonical<'tcx, V> where
V: Lift<'__lifted>, [src]
V: Lift<'__lifted>,
type Lifted = Canonical<'__lifted, V::Lifted>
pub fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Canonical<'__lifted, V::Lifted>>[src]
self,
__tcx: TyCtxt<'__lifted>
) -> Option<Canonical<'__lifted, V::Lifted>>