Lines Matching refs:generic
1226 PathArguments::AngleBracketed(generic) => { in parse_type_path()
1227 if ident == "UniquePtr" && generic.args.len() == 1 { in parse_type_path()
1228 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path()
1232 langle: generic.lt_token, in parse_type_path()
1234 rangle: generic.gt_token, in parse_type_path()
1237 } else if ident == "SharedPtr" && generic.args.len() == 1 { in parse_type_path()
1238 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path()
1242 langle: generic.lt_token, in parse_type_path()
1244 rangle: generic.gt_token, in parse_type_path()
1247 } else if ident == "WeakPtr" && generic.args.len() == 1 { in parse_type_path()
1248 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path()
1252 langle: generic.lt_token, in parse_type_path()
1254 rangle: generic.gt_token, in parse_type_path()
1257 } else if ident == "CxxVector" && generic.args.len() == 1 { in parse_type_path()
1258 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path()
1262 langle: generic.lt_token, in parse_type_path()
1264 rangle: generic.gt_token, in parse_type_path()
1267 } else if ident == "Box" && generic.args.len() == 1 { in parse_type_path()
1268 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path()
1272 langle: generic.lt_token, in parse_type_path()
1274 rangle: generic.gt_token, in parse_type_path()
1277 } else if ident == "Vec" && generic.args.len() == 1 { in parse_type_path()
1278 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path()
1282 langle: generic.lt_token, in parse_type_path()
1284 rangle: generic.gt_token, in parse_type_path()
1287 } else if ident == "Pin" && generic.args.len() == 1 { in parse_type_path()
1288 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path()
1294 Some((pin_token, generic.lt_token, generic.gt_token)); in parse_type_path()
1301 for pair in generic.args.pairs() { in parse_type_path()
1317 lt_token: Some(generic.lt_token), in parse_type_path()
1319 gt_token: Some(generic.gt_token), in parse_type_path()
1453 if let PathArguments::AngleBracketed(generic) = &segment.arguments { in parse_return_type()
1454 if ident == "Result" && generic.args.len() == 1 { in parse_return_type()
1455 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_return_type()
1458 Some((kw::Result(ident.span()), generic.lt_token, generic.gt_token)); in parse_return_type()