pub fn match_ty_with_ident<'tcx>(
tcx: TyCtxt<'tcx>,
def_id: DefId,
type_ident: String,
) -> Option<Ty<'tcx>>Expand description
Match a type-identifier string to a concrete Ty.
Checks in order:
- Primitive types (
u32,bool, …) - Generic type parameters in the function signature or
selftype