pub fn get_field_by_name<'tcx>( tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, name: Symbol, ) -> Option<Ty<'tcx>>
Get’s the type of a field by name.