Function find_generic_in_ty

Source
fn find_generic_in_ty<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
    type_ident: &str,
) -> Option<Ty<'tcx>>
Expand description

Iterate the args’ types recursively and find the matched generic one.