pub(crate) trait FromWithTcx<T> {
    // Required method
    fn from_tcx(f: T, tcx: TyCtxt<'_>) -> Self;
}

Required Methods§

source

fn from_tcx(f: T, tcx: TyCtxt<'_>) -> Self

Implementations on Foreign Types§

source§

impl FromWithTcx<TraitAlias> for TraitAlias

source§

fn from_tcx(alias: TraitAlias, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Variant> for Variant

source§

fn from_tcx(variant: Variant, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Path> for Path

source§

fn from_tcx(path: Path, tcx: TyCtxt<'_>) -> Path

source§

impl FromWithTcx<FnDecl> for FnDecl

source§

fn from_tcx(decl: FnDecl, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<GenericParamDef> for GenericParamDef

source§

fn from_tcx(generic_param: GenericParamDef, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<PolyTrait> for PolyTrait

source§

fn from_tcx(_: PolyTrait, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Impl> for Impl

source§

fn from_tcx(impl_: Impl, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<TypeBinding> for TypeBinding

source§

fn from_tcx(binding: TypeBinding, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Import> for Import

source§

fn from_tcx(import: Import, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Box<TypeAlias, Global>> for TypeAlias

source§

fn from_tcx(type_alias: Box<TypeAlias>, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Struct> for Struct

source§

fn from_tcx(struct_: Struct, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<BareFunctionDecl> for FunctionPointer

source§

fn from_tcx(bare_decl: BareFunctionDecl, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Enum> for Enum

source§

fn from_tcx(enum_: Enum, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<GenericParamDefKind> for GenericParamDefKind

source§

fn from_tcx(kind: GenericParamDefKind, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Union> for Union

source§

fn from_tcx(union_: Union, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<GenericArg> for GenericArg

source§

fn from_tcx(arg: GenericArg, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Discriminant> for Discriminant

source§

fn from_tcx(disr: Discriminant, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Term> for Term

source§

fn from_tcx(term: Term, tcx: TyCtxt<'_>) -> Term

source§

impl FromWithTcx<GenericArgs> for GenericArgs

source§

fn from_tcx(args: GenericArgs, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<OpaqueTy> for OpaqueTy

source§

fn from_tcx(opaque: OpaqueTy, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Type> for Type

source§

fn from_tcx(ty: Type, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<ProcMacro> for ProcMacro

source§

fn from_tcx(mac: ProcMacro, _tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Static> for Static

source§

fn from_tcx(stat: Static, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<ItemType> for ItemKind

source§

fn from_tcx(kind: ItemType, _tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<GenericBound> for GenericBound

source§

fn from_tcx(bound: GenericBound, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Generics> for Generics

source§

fn from_tcx(generics: Generics, tcx: TyCtxt<'_>) -> Self

source§

impl<I, T, U> FromWithTcx<I> for Vec<U>where I: IntoIterator<Item = T>, U: FromWithTcx<T>,

source§

fn from_tcx(f: I, tcx: TyCtxt<'_>) -> Vec<U>

source§

impl FromWithTcx<Constant> for Constant

source§

fn from_tcx(constant: Constant, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<TypeBindingKind> for TypeBindingKind

source§

fn from_tcx(kind: TypeBindingKind, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<Trait> for Trait

source§

fn from_tcx(trait_: Trait, tcx: TyCtxt<'_>) -> Self

source§

impl FromWithTcx<WherePredicate> for WherePredicate

source§

fn from_tcx(predicate: WherePredicate, tcx: TyCtxt<'_>) -> Self

Implementors§