rustc_infer::infer::canonical::ir

Trait Interner

source
pub trait Interner:
    Sized
    + Copy
    + IrPrint<AliasTy<Self>>
    + IrPrint<AliasTerm<Self>>
    + IrPrint<TraitRef<Self>>
    + IrPrint<TraitPredicate<Self>>
    + IrPrint<ExistentialTraitRef<Self>>
    + IrPrint<ExistentialProjection<Self>>
    + IrPrint<ProjectionPredicate<Self>>
    + IrPrint<NormalizesTo<Self>>
    + IrPrint<SubtypePredicate<Self>>
    + IrPrint<CoercePredicate<Self>>
    + IrPrint<FnSig<Self>> {
Show 106 associated items type DefId: DefId<Self>; type LocalDefId: Copy + Debug + Hash + Eq + Into<Self::DefId> + TypeFoldable<Self>; type Span: Span<Self>; type GenericArgs: GenericArgs<Self>; type GenericArgsSlice: Copy + Debug + Hash + Eq + SliceLike<Item = Self::GenericArg>; type GenericArg: GenericArg<Self>; type Term: Term<Self>; type BoundVarKinds: Copy + Debug + Hash + Eq + SliceLike<Item = Self::BoundVarKind> + Default; type BoundVarKind: Copy + Debug + Hash + Eq; type PredefinedOpaques: Copy + Debug + Hash + Eq + TypeFoldable<Self> + Deref<Target = PredefinedOpaquesData<Self>>; type DefiningOpaqueTypes: Copy + Debug + Hash + Default + Eq + TypeVisitable<Self> + SliceLike<Item = Self::LocalDefId>; type CanonicalVars: Copy + Debug + Hash + Eq + SliceLike<Item = CanonicalVarInfo<Self>> + Default; type ExternalConstraints: Copy + Debug + Hash + Eq + TypeFoldable<Self> + Deref<Target = ExternalConstraintsData<Self>>; type DepNodeIndex; type Tracked<T: Debug + Clone>: Debug; type Ty: Ty<Self>; type Tys: Tys<Self>; type FnInputTys: Copy + Debug + Hash + Eq + SliceLike<Item = Self::Ty> + TypeVisitable<Self>; type ParamTy: Copy + Debug + Hash + Eq + ParamLike; type BoundTy: Copy + Debug + Hash + Eq + BoundVarLike<Self>; type PlaceholderTy: PlaceholderLike; type ErrorGuaranteed: Copy + Debug + Hash + Eq; type BoundExistentialPredicates: BoundExistentialPredicates<Self>; type AllocId: Copy + Debug + Hash + Eq; type Pat: Copy + Debug + Hash + Eq + Relate<Self>; type Safety: Safety<Self>; type Abi: Abi<Self>; type Const: Const<Self>; type PlaceholderConst: PlaceholderLike; type ParamConst: Copy + Debug + Hash + Eq + ParamLike; type BoundConst: Copy + Debug + Hash + Eq + BoundVarLike<Self>; type ValueConst: Copy + Debug + Hash + Eq; type ExprConst: ExprConst<Self>; type Region: Region<Self>; type EarlyParamRegion: Copy + Debug + Hash + Eq + ParamLike; type LateParamRegion: Copy + Debug + Hash + Eq; type BoundRegion: Copy + Debug + Hash + Eq + BoundVarLike<Self>; type PlaceholderRegion: PlaceholderLike; type ParamEnv: ParamEnv<Self>; type Predicate: Predicate<Self>; type Clause: Clause<Self>; type Clauses: Copy + Debug + Hash + Eq + TypeSuperVisitable<Self> + Flags; type GenericsOf: GenericsOf<Self>; type VariancesOf: Copy + Debug + SliceLike<Item = Variance>; type AdtDef: AdtDef<Self>; type Features: Features<Self>; type UnsizingParams: Deref<Target = BitSet<u32>>; // Required methods fn mk_predefined_opaques_in_body( self, data: PredefinedOpaquesData<Self>, ) -> Self::PredefinedOpaques; fn mk_canonical_var_infos( self, infos: &[CanonicalVarInfo<Self>], ) -> Self::CanonicalVars; fn mk_external_constraints( self, data: ExternalConstraintsData<Self>, ) -> Self::ExternalConstraints; fn mk_tracked<T>( self, data: T, dep_node: Self::DepNodeIndex, ) -> Self::Tracked<T> where T: Debug + Clone; fn get_tracked<T>(self, tracked: &Self::Tracked<T>) -> T where T: Debug + Clone; fn with_cached_task<T>( self, task: impl FnOnce() -> T, ) -> (T, Self::DepNodeIndex); fn with_global_cache<R>( self, mode: SolverMode, f: impl FnOnce(&mut GlobalCache<Self>) -> R, ) -> R; fn evaluation_is_concurrent(&self) -> bool; fn expand_abstract_consts<T>(self, t: T) -> T where T: TypeFoldable<Self>; fn generics_of(self, def_id: Self::DefId) -> Self::GenericsOf; fn variances_of(self, def_id: Self::DefId) -> Self::VariancesOf; fn type_of(self, def_id: Self::DefId) -> EarlyBinder<Self, Self::Ty>; fn adt_def(self, adt_def_id: Self::DefId) -> Self::AdtDef; fn alias_ty_kind(self, alias: AliasTy<Self>) -> AliasTyKind; fn alias_term_kind(self, alias: AliasTerm<Self>) -> AliasTermKind; fn trait_ref_and_own_args_for_alias( self, def_id: Self::DefId, args: Self::GenericArgs, ) -> (TraitRef<Self>, Self::GenericArgsSlice); fn mk_args(self, args: &[Self::GenericArg]) -> Self::GenericArgs; fn mk_args_from_iter<I, T>( self, args: I, ) -> <T as CollectAndApply<Self::GenericArg, Self::GenericArgs>>::Output where I: Iterator<Item = T>, T: CollectAndApply<Self::GenericArg, Self::GenericArgs>; fn check_args_compatible( self, def_id: Self::DefId, args: Self::GenericArgs, ) -> bool; fn debug_assert_args_compatible( self, def_id: Self::DefId, args: Self::GenericArgs, ); fn mk_type_list_from_iter<I, T>( self, args: I, ) -> <T as CollectAndApply<Self::Ty, Self::Tys>>::Output where I: Iterator<Item = T>, T: CollectAndApply<Self::Ty, Self::Tys>; fn parent(self, def_id: Self::DefId) -> Self::DefId; fn recursion_limit(self) -> usize; fn features(self) -> Self::Features; fn bound_coroutine_hidden_types( self, def_id: Self::DefId, ) -> impl IntoIterator<Item = EarlyBinder<Self, Binder<Self, Self::Ty>>>; fn fn_sig( self, def_id: Self::DefId, ) -> EarlyBinder<Self, Binder<Self, FnSig<Self>>>; fn coroutine_movability(self, def_id: Self::DefId) -> Movability; fn coroutine_for_closure(self, def_id: Self::DefId) -> Self::DefId; fn generics_require_sized_self(self, def_id: Self::DefId) -> bool; fn item_bounds( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = Self::Clause>>; fn predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = Self::Clause>>; fn own_predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = Self::Clause>>; fn explicit_super_predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = (Self::Clause, Self::Span)>>; fn explicit_implied_predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = (Self::Clause, Self::Span)>>; fn has_target_features(self, def_id: Self::DefId) -> bool; fn require_lang_item(self, lang_item: TraitSolverLangItem) -> Self::DefId; fn is_lang_item( self, def_id: Self::DefId, lang_item: TraitSolverLangItem, ) -> bool; fn as_lang_item(self, def_id: Self::DefId) -> Option<TraitSolverLangItem>; fn associated_type_def_ids( self, def_id: Self::DefId, ) -> impl IntoIterator<Item = Self::DefId>; fn for_each_relevant_impl( self, trait_def_id: Self::DefId, self_ty: Self::Ty, f: impl FnMut(Self::DefId), ); fn has_item_definition(self, def_id: Self::DefId) -> bool; fn impl_is_default(self, impl_def_id: Self::DefId) -> bool; fn impl_trait_ref( self, impl_def_id: Self::DefId, ) -> EarlyBinder<Self, TraitRef<Self>>; fn impl_polarity(self, impl_def_id: Self::DefId) -> ImplPolarity; fn trait_is_auto(self, trait_def_id: Self::DefId) -> bool; fn trait_is_alias(self, trait_def_id: Self::DefId) -> bool; fn trait_is_dyn_compatible(self, trait_def_id: Self::DefId) -> bool; fn trait_is_fundamental(self, def_id: Self::DefId) -> bool; fn trait_may_be_implemented_via_object( self, trait_def_id: Self::DefId, ) -> bool; fn is_impl_trait_in_trait(self, def_id: Self::DefId) -> bool; fn delay_bug(self, msg: impl ToString) -> Self::ErrorGuaranteed; fn is_general_coroutine(self, coroutine_def_id: Self::DefId) -> bool; fn coroutine_is_async(self, coroutine_def_id: Self::DefId) -> bool; fn coroutine_is_gen(self, coroutine_def_id: Self::DefId) -> bool; fn coroutine_is_async_gen(self, coroutine_def_id: Self::DefId) -> bool; fn layout_is_pointer_like( self, param_env: Self::ParamEnv, ty: Self::Ty, ) -> bool; fn unsizing_params_for_adt( self, adt_def_id: Self::DefId, ) -> Self::UnsizingParams; fn find_const_ty_from_env( self, param_env: Self::ParamEnv, placeholder: Self::PlaceholderConst, ) -> Self::Ty; fn anonymize_bound_vars<T>(self, binder: Binder<Self, T>) -> Binder<Self, T> where T: TypeFoldable<Self>;
}

Required Associated Types§

source

type DefId: DefId<Self>

source

type LocalDefId: Copy + Debug + Hash + Eq + Into<Self::DefId> + TypeFoldable<Self>

source

type Span: Span<Self>

source

type GenericArgs: GenericArgs<Self>

source

type GenericArgsSlice: Copy + Debug + Hash + Eq + SliceLike<Item = Self::GenericArg>

source

type GenericArg: GenericArg<Self>

source

type Term: Term<Self>

source

type BoundVarKinds: Copy + Debug + Hash + Eq + SliceLike<Item = Self::BoundVarKind> + Default

source

type BoundVarKind: Copy + Debug + Hash + Eq

source

type PredefinedOpaques: Copy + Debug + Hash + Eq + TypeFoldable<Self> + Deref<Target = PredefinedOpaquesData<Self>>

source

type DefiningOpaqueTypes: Copy + Debug + Hash + Default + Eq + TypeVisitable<Self> + SliceLike<Item = Self::LocalDefId>

source

type CanonicalVars: Copy + Debug + Hash + Eq + SliceLike<Item = CanonicalVarInfo<Self>> + Default

source

type ExternalConstraints: Copy + Debug + Hash + Eq + TypeFoldable<Self> + Deref<Target = ExternalConstraintsData<Self>>

source

type DepNodeIndex

source

type Tracked<T: Debug + Clone>: Debug

source

type Ty: Ty<Self>

source

type Tys: Tys<Self>

source

type FnInputTys: Copy + Debug + Hash + Eq + SliceLike<Item = Self::Ty> + TypeVisitable<Self>

source

type ParamTy: Copy + Debug + Hash + Eq + ParamLike

source

type BoundTy: Copy + Debug + Hash + Eq + BoundVarLike<Self>

source

type PlaceholderTy: PlaceholderLike

source

type ErrorGuaranteed: Copy + Debug + Hash + Eq

source

type BoundExistentialPredicates: BoundExistentialPredicates<Self>

source

type AllocId: Copy + Debug + Hash + Eq

source

type Pat: Copy + Debug + Hash + Eq + Relate<Self>

source

type Safety: Safety<Self>

source

type Abi: Abi<Self>

source

type Const: Const<Self>

source

type PlaceholderConst: PlaceholderLike

source

type ParamConst: Copy + Debug + Hash + Eq + ParamLike

source

type BoundConst: Copy + Debug + Hash + Eq + BoundVarLike<Self>

source

type ValueConst: Copy + Debug + Hash + Eq

source

type ExprConst: ExprConst<Self>

source

type Region: Region<Self>

source

type EarlyParamRegion: Copy + Debug + Hash + Eq + ParamLike

source

type LateParamRegion: Copy + Debug + Hash + Eq

source

type BoundRegion: Copy + Debug + Hash + Eq + BoundVarLike<Self>

source

type PlaceholderRegion: PlaceholderLike

source

type ParamEnv: ParamEnv<Self>

source

type Predicate: Predicate<Self>

source

type Clause: Clause<Self>

source

type Clauses: Copy + Debug + Hash + Eq + TypeSuperVisitable<Self> + Flags

source

type GenericsOf: GenericsOf<Self>

source

type VariancesOf: Copy + Debug + SliceLike<Item = Variance>

source

type AdtDef: AdtDef<Self>

source

type Features: Features<Self>

source

type UnsizingParams: Deref<Target = BitSet<u32>>

Required Methods§

source

fn mk_predefined_opaques_in_body( self, data: PredefinedOpaquesData<Self>, ) -> Self::PredefinedOpaques

source

fn mk_canonical_var_infos( self, infos: &[CanonicalVarInfo<Self>], ) -> Self::CanonicalVars

source

fn mk_external_constraints( self, data: ExternalConstraintsData<Self>, ) -> Self::ExternalConstraints

source

fn mk_tracked<T>( self, data: T, dep_node: Self::DepNodeIndex, ) -> Self::Tracked<T>
where T: Debug + Clone,

source

fn get_tracked<T>(self, tracked: &Self::Tracked<T>) -> T
where T: Debug + Clone,

source

fn with_cached_task<T>( self, task: impl FnOnce() -> T, ) -> (T, Self::DepNodeIndex)

source

fn with_global_cache<R>( self, mode: SolverMode, f: impl FnOnce(&mut GlobalCache<Self>) -> R, ) -> R

source

fn evaluation_is_concurrent(&self) -> bool

source

fn expand_abstract_consts<T>(self, t: T) -> T
where T: TypeFoldable<Self>,

source

fn generics_of(self, def_id: Self::DefId) -> Self::GenericsOf

source

fn variances_of(self, def_id: Self::DefId) -> Self::VariancesOf

source

fn type_of(self, def_id: Self::DefId) -> EarlyBinder<Self, Self::Ty>

source

fn adt_def(self, adt_def_id: Self::DefId) -> Self::AdtDef

source

fn alias_ty_kind(self, alias: AliasTy<Self>) -> AliasTyKind

source

fn alias_term_kind(self, alias: AliasTerm<Self>) -> AliasTermKind

source

fn trait_ref_and_own_args_for_alias( self, def_id: Self::DefId, args: Self::GenericArgs, ) -> (TraitRef<Self>, Self::GenericArgsSlice)

source

fn mk_args(self, args: &[Self::GenericArg]) -> Self::GenericArgs

source

fn mk_args_from_iter<I, T>( self, args: I, ) -> <T as CollectAndApply<Self::GenericArg, Self::GenericArgs>>::Output
where I: Iterator<Item = T>, T: CollectAndApply<Self::GenericArg, Self::GenericArgs>,

source

fn check_args_compatible( self, def_id: Self::DefId, args: Self::GenericArgs, ) -> bool

source

fn debug_assert_args_compatible( self, def_id: Self::DefId, args: Self::GenericArgs, )

source

fn mk_type_list_from_iter<I, T>( self, args: I, ) -> <T as CollectAndApply<Self::Ty, Self::Tys>>::Output
where I: Iterator<Item = T>, T: CollectAndApply<Self::Ty, Self::Tys>,

source

fn parent(self, def_id: Self::DefId) -> Self::DefId

source

fn recursion_limit(self) -> usize

source

fn features(self) -> Self::Features

source

fn bound_coroutine_hidden_types( self, def_id: Self::DefId, ) -> impl IntoIterator<Item = EarlyBinder<Self, Binder<Self, Self::Ty>>>

source

fn fn_sig( self, def_id: Self::DefId, ) -> EarlyBinder<Self, Binder<Self, FnSig<Self>>>

source

fn coroutine_movability(self, def_id: Self::DefId) -> Movability

source

fn coroutine_for_closure(self, def_id: Self::DefId) -> Self::DefId

source

fn generics_require_sized_self(self, def_id: Self::DefId) -> bool

source

fn item_bounds( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = Self::Clause>>

source

fn predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = Self::Clause>>

source

fn own_predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = Self::Clause>>

source

fn explicit_super_predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = (Self::Clause, Self::Span)>>

source

fn explicit_implied_predicates_of( self, def_id: Self::DefId, ) -> EarlyBinder<Self, impl IntoIterator<Item = (Self::Clause, Self::Span)>>

source

fn has_target_features(self, def_id: Self::DefId) -> bool

source

fn require_lang_item(self, lang_item: TraitSolverLangItem) -> Self::DefId

source

fn is_lang_item( self, def_id: Self::DefId, lang_item: TraitSolverLangItem, ) -> bool

source

fn as_lang_item(self, def_id: Self::DefId) -> Option<TraitSolverLangItem>

source

fn associated_type_def_ids( self, def_id: Self::DefId, ) -> impl IntoIterator<Item = Self::DefId>

source

fn for_each_relevant_impl( self, trait_def_id: Self::DefId, self_ty: Self::Ty, f: impl FnMut(Self::DefId), )

source

fn has_item_definition(self, def_id: Self::DefId) -> bool

source

fn impl_is_default(self, impl_def_id: Self::DefId) -> bool

source

fn impl_trait_ref( self, impl_def_id: Self::DefId, ) -> EarlyBinder<Self, TraitRef<Self>>

source

fn impl_polarity(self, impl_def_id: Self::DefId) -> ImplPolarity

source

fn trait_is_auto(self, trait_def_id: Self::DefId) -> bool

source

fn trait_is_alias(self, trait_def_id: Self::DefId) -> bool

source

fn trait_is_dyn_compatible(self, trait_def_id: Self::DefId) -> bool

source

fn trait_is_fundamental(self, def_id: Self::DefId) -> bool

source

fn trait_may_be_implemented_via_object(self, trait_def_id: Self::DefId) -> bool

source

fn is_impl_trait_in_trait(self, def_id: Self::DefId) -> bool

source

fn delay_bug(self, msg: impl ToString) -> Self::ErrorGuaranteed

source

fn is_general_coroutine(self, coroutine_def_id: Self::DefId) -> bool

source

fn coroutine_is_async(self, coroutine_def_id: Self::DefId) -> bool

source

fn coroutine_is_gen(self, coroutine_def_id: Self::DefId) -> bool

source

fn coroutine_is_async_gen(self, coroutine_def_id: Self::DefId) -> bool

source

fn layout_is_pointer_like(self, param_env: Self::ParamEnv, ty: Self::Ty) -> bool

source

fn unsizing_params_for_adt( self, adt_def_id: Self::DefId, ) -> Self::UnsizingParams

source

fn find_const_ty_from_env( self, param_env: Self::ParamEnv, placeholder: Self::PlaceholderConst, ) -> Self::Ty

source

fn anonymize_bound_vars<T>(self, binder: Binder<Self, T>) -> Binder<Self, T>
where T: TypeFoldable<Self>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'tcx> Interner for TyCtxt<'tcx>

source§

type DefId = DefId

source§

type LocalDefId = LocalDefId

source§

type Span = Span

source§

type GenericArgs = &'tcx RawList<(), GenericArg<'tcx>>

source§

type GenericArgsSlice = &'tcx [GenericArg<'tcx>]

source§

type GenericArg = GenericArg<'tcx>

source§

type Term = Term<'tcx>

source§

type BoundVarKinds = &'tcx RawList<(), BoundVariableKind>

source§

type BoundVarKind = BoundVariableKind

source§

type PredefinedOpaques = PredefinedOpaques<'tcx>

source§

type DefiningOpaqueTypes = &'tcx RawList<(), LocalDefId>

source§

type CanonicalVars = &'tcx RawList<(), CanonicalVarInfo<TyCtxt<'tcx>>>

source§

type ExternalConstraints = ExternalConstraints<'tcx>

source§

type DepNodeIndex = DepNodeIndex

source§

type Ty = Ty<'tcx>

source§

type Tys = &'tcx RawList<(), Ty<'tcx>>

source§

type FnInputTys = &'tcx [Ty<'tcx>]

source§

type ParamTy = ParamTy

source§

type BoundTy = BoundTy

source§

type PlaceholderTy = Placeholder<BoundTy>

source§

type ErrorGuaranteed = ErrorGuaranteed

source§

type BoundExistentialPredicates = &'tcx RawList<(), Binder<TyCtxt<'tcx>, ExistentialPredicate<TyCtxt<'tcx>>>>

source§

type AllocId = AllocId

source§

type Pat = Pattern<'tcx>

source§

type Safety = Safety

source§

type Abi = Abi

source§

type Const = Const<'tcx>

source§

type PlaceholderConst = Placeholder<BoundVar>

source§

type ParamConst = ParamConst

source§

type BoundConst = BoundVar

source§

type ValueConst = ValTree<'tcx>

source§

type ExprConst = Expr<'tcx>

source§

type Region = Region<'tcx>

source§

type EarlyParamRegion = EarlyParamRegion

source§

type LateParamRegion = LateParamRegion

source§

type BoundRegion = BoundRegion

source§

type PlaceholderRegion = Placeholder<BoundRegion>

source§

type ParamEnv = ParamEnv<'tcx>

source§

type Predicate = Predicate<'tcx>

source§

type Clause = Clause<'tcx>

source§

type Clauses = &'tcx RawList<TypeInfo, Clause<'tcx>>

source§

type Tracked<T: Debug + Clone> = WithDepNode<T>

source§

type GenericsOf = &'tcx Generics

source§

type VariancesOf = &'tcx [Variance]

source§

type AdtDef = AdtDef<'tcx>

source§

type Features = &'tcx Features

source§

type UnsizingParams = &'tcx BitSet<u32>

source§

fn mk_predefined_opaques_in_body( self, data: PredefinedOpaquesData<TyCtxt<'tcx>>, ) -> PredefinedOpaques<'tcx>

source§

fn mk_canonical_var_infos( self, infos: &[CanonicalVarInfo<TyCtxt<'tcx>>], ) -> &'tcx RawList<(), CanonicalVarInfo<TyCtxt<'tcx>>>

source§

fn mk_external_constraints( self, data: ExternalConstraintsData<TyCtxt<'tcx>>, ) -> ExternalConstraints<'tcx>

source§

fn with_cached_task<T>(self, task: impl FnOnce() -> T) -> (T, DepNodeIndex)

source§

fn mk_tracked<T>( self, data: T, dep_node: DepNodeIndex, ) -> <TyCtxt<'tcx> as Interner>::Tracked<T>
where T: Debug + Clone,

source§

fn get_tracked<T>(self, tracked: &<TyCtxt<'tcx> as Interner>::Tracked<T>) -> T
where T: Debug + Clone,

source§

fn with_global_cache<R>( self, mode: SolverMode, f: impl FnOnce(&mut GlobalCache<TyCtxt<'tcx>>) -> R, ) -> R

source§

fn evaluation_is_concurrent(&self) -> bool

source§

fn expand_abstract_consts<T>(self, t: T) -> T
where T: TypeFoldable<TyCtxt<'tcx>>,

source§

fn generics_of(self, def_id: DefId) -> &'tcx Generics

source§

fn variances_of(self, def_id: DefId) -> &'tcx [Variance]

source§

fn type_of(self, def_id: DefId) -> EarlyBinder<TyCtxt<'tcx>, Ty<'tcx>>

source§

fn adt_def(self, adt_def_id: DefId) -> AdtDef<'tcx>

source§

fn alias_ty_kind(self, alias: AliasTy<TyCtxt<'tcx>>) -> AliasTyKind

source§

fn alias_term_kind(self, alias: AliasTerm<TyCtxt<'tcx>>) -> AliasTermKind

source§

fn trait_ref_and_own_args_for_alias( self, def_id: DefId, args: &'tcx RawList<(), GenericArg<'tcx>>, ) -> (TraitRef<TyCtxt<'tcx>>, &'tcx [GenericArg<'tcx>])

source§

fn mk_args( self, args: &[GenericArg<'tcx>], ) -> &'tcx RawList<(), GenericArg<'tcx>>

source§

fn mk_args_from_iter<I, T>( self, args: I, ) -> <T as CollectAndApply<GenericArg<'tcx>, &'tcx RawList<(), GenericArg<'tcx>>>>::Output
where I: Iterator<Item = T>, T: CollectAndApply<GenericArg<'tcx>, &'tcx RawList<(), GenericArg<'tcx>>>,

source§

fn check_args_compatible( self, def_id: DefId, args: &'tcx RawList<(), GenericArg<'tcx>>, ) -> bool

source§

fn debug_assert_args_compatible( self, def_id: DefId, args: &'tcx RawList<(), GenericArg<'tcx>>, )

source§

fn mk_type_list_from_iter<I, T>( self, args: I, ) -> <T as CollectAndApply<Ty<'tcx>, &'tcx RawList<(), Ty<'tcx>>>>::Output
where I: Iterator<Item = T>, T: CollectAndApply<Ty<'tcx>, &'tcx RawList<(), Ty<'tcx>>>,

source§

fn parent(self, def_id: DefId) -> DefId

source§

fn recursion_limit(self) -> usize

source§

fn features(self) -> &'tcx Features

source§

fn bound_coroutine_hidden_types( self, def_id: DefId, ) -> impl IntoIterator<Item = EarlyBinder<TyCtxt<'tcx>, Binder<TyCtxt<'tcx>, Ty<'tcx>>>>

source§

fn fn_sig( self, def_id: DefId, ) -> EarlyBinder<TyCtxt<'tcx>, Binder<TyCtxt<'tcx>, FnSig<TyCtxt<'tcx>>>>

source§

fn coroutine_movability(self, def_id: DefId) -> Movability

source§

fn coroutine_for_closure(self, def_id: DefId) -> DefId

source§

fn generics_require_sized_self(self, def_id: DefId) -> bool

source§

fn item_bounds( self, def_id: DefId, ) -> EarlyBinder<TyCtxt<'tcx>, impl IntoIterator<Item = Clause<'tcx>>>

source§

fn predicates_of( self, def_id: DefId, ) -> EarlyBinder<TyCtxt<'tcx>, impl IntoIterator<Item = Clause<'tcx>>>

source§

fn own_predicates_of( self, def_id: DefId, ) -> EarlyBinder<TyCtxt<'tcx>, impl IntoIterator<Item = Clause<'tcx>>>

source§

fn explicit_super_predicates_of( self, def_id: DefId, ) -> EarlyBinder<TyCtxt<'tcx>, impl IntoIterator<Item = (Clause<'tcx>, Span)>>

source§

fn explicit_implied_predicates_of( self, def_id: DefId, ) -> EarlyBinder<TyCtxt<'tcx>, impl IntoIterator<Item = (Clause<'tcx>, Span)>>

source§

fn has_target_features(self, def_id: DefId) -> bool

source§

fn require_lang_item(self, lang_item: TraitSolverLangItem) -> DefId

source§

fn is_lang_item(self, def_id: DefId, lang_item: TraitSolverLangItem) -> bool

source§

fn as_lang_item(self, def_id: DefId) -> Option<TraitSolverLangItem>

source§

fn associated_type_def_ids( self, def_id: DefId, ) -> impl IntoIterator<Item = DefId>

source§

fn for_each_relevant_impl( self, trait_def_id: DefId, self_ty: Ty<'tcx>, f: impl FnMut(DefId), )

source§

fn has_item_definition(self, def_id: DefId) -> bool

source§

fn impl_is_default(self, impl_def_id: DefId) -> bool

source§

fn impl_trait_ref( self, impl_def_id: DefId, ) -> EarlyBinder<TyCtxt<'tcx>, TraitRef<TyCtxt<'tcx>>>

source§

fn impl_polarity(self, impl_def_id: DefId) -> ImplPolarity

source§

fn trait_is_auto(self, trait_def_id: DefId) -> bool

source§

fn trait_is_alias(self, trait_def_id: DefId) -> bool

source§

fn trait_is_dyn_compatible(self, trait_def_id: DefId) -> bool

source§

fn trait_is_fundamental(self, def_id: DefId) -> bool

source§

fn trait_may_be_implemented_via_object(self, trait_def_id: DefId) -> bool

source§

fn is_impl_trait_in_trait(self, def_id: DefId) -> bool

source§

fn delay_bug(self, msg: impl ToString) -> ErrorGuaranteed

source§

fn is_general_coroutine(self, coroutine_def_id: DefId) -> bool

source§

fn coroutine_is_async(self, coroutine_def_id: DefId) -> bool

source§

fn coroutine_is_gen(self, coroutine_def_id: DefId) -> bool

source§

fn coroutine_is_async_gen(self, coroutine_def_id: DefId) -> bool

source§

fn layout_is_pointer_like(self, param_env: ParamEnv<'tcx>, ty: Ty<'tcx>) -> bool

source§

fn unsizing_params_for_adt(self, adt_def_id: DefId) -> &'tcx BitSet<u32>

source§

fn find_const_ty_from_env( self, param_env: ParamEnv<'tcx>, placeholder: Placeholder<BoundVar>, ) -> Ty<'tcx>

source§

fn anonymize_bound_vars<T>( self, binder: Binder<TyCtxt<'tcx>, T>, ) -> Binder<TyCtxt<'tcx>, T>
where T: TypeFoldable<TyCtxt<'tcx>>,

Implementors§