match_ty_with_ident

Function match_ty_with_ident 

Source
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:

  1. Primitive types (u32, bool, …)
  2. Generic type parameters in the function signature or self type