]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-json/structs.expected
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / rustdoc-json / structs.expected
CommitLineData
fc512014
XL
1{
2 "root": "0:0",
3 "version": null,
4 "includes_private": false,
5 "index": {
6 "0:9": {
7 "crate_id": 0,
8 "name": "Unit",
9 "source": {
10 "filename": "$TEST_BASE_DIR/structs.rs",
11 "begin": [
12 7,
13 0
14 ],
15 "end": [
16 7,
17 16
18 ]
19 },
20 "visibility": "public",
21 "docs": "",
22 "links": {},
23 "attrs": [],
24 "deprecation": null,
25 "kind": "struct",
26 "inner": {
27 "struct_type": "unit",
28 "generics": {
29 "params": [],
30 "where_predicates": []
31 },
32 "fields_stripped": false,
33 "fields": []
34 }
35 },
36 "0:8": {
37 "crate_id": 0,
38 "name": "1",
39 "source": {
40 "filename": "$TEST_BASE_DIR/structs.rs",
41 "begin": [
42 5,
43 22
44 ],
45 "end": [
46 5,
47 28
48 ]
49 },
50 "visibility": "default",
51 "docs": "",
52 "links": {},
53 "attrs": [],
54 "deprecation": null,
55 "kind": "struct_field",
56 "inner": {
57 "kind": "resolved_path",
58 "inner": {
59 "name": "String",
60 "id": "5:5035",
61 "args": {
62 "angle_bracketed": {
63 "args": [],
64 "bindings": []
65 }
66 },
67 "param_names": []
68 }
69 }
70 },
71 "0:18": {
72 "crate_id": 0,
73 "name": "stuff",
74 "source": {
75 "filename": "$TEST_BASE_DIR/structs.rs",
76 "begin": [
77 15,
78 4
79 ],
80 "end": [
81 15,
82 17
83 ]
84 },
85 "visibility": "default",
86 "docs": "",
87 "links": {},
88 "attrs": [],
89 "deprecation": null,
90 "kind": "struct_field",
91 "inner": {
92 "kind": "resolved_path",
93 "inner": {
94 "name": "Vec",
95 "id": "5:4322",
96 "args": {
97 "angle_bracketed": {
98 "args": [
99 {
100 "type": {
101 "kind": "generic",
102 "inner": "T"
103 }
104 }
105 ],
106 "bindings": []
107 }
108 },
109 "param_names": []
110 }
111 }
112 },
113 "0:11": {
114 "crate_id": 0,
115 "name": "WithPrimitives",
116 "source": {
117 "filename": "$TEST_BASE_DIR/structs.rs",
118 "begin": [
119 9,
120 0
121 ],
122 "end": [
123 12,
124 1
125 ]
126 },
127 "visibility": "public",
128 "docs": "",
129 "links": {},
130 "attrs": [],
131 "deprecation": null,
132 "kind": "struct",
133 "inner": {
134 "struct_type": "plain",
135 "generics": {
136 "params": [
137 {
138 "name": "'a",
139 "kind": "lifetime"
140 }
141 ],
142 "where_predicates": []
143 },
144 "fields_stripped": true
145 }
146 },
147 "0:14": {
148 "crate_id": 0,
149 "name": "s",
150 "source": {
151 "filename": "$TEST_BASE_DIR/structs.rs",
152 "begin": [
153 11,
154 4
155 ],
156 "end": [
157 11,
158 14
159 ]
160 },
161 "visibility": "default",
162 "docs": "",
163 "links": {},
164 "attrs": [],
165 "deprecation": null,
166 "kind": "struct_field",
167 "inner": {
168 "kind": "borrowed_ref",
169 "inner": {
170 "lifetime": "'a",
171 "mutable": false,
172 "type": {
173 "kind": "primitive",
174 "inner": "str"
175 }
176 }
177 }
178 },
179 "0:19": {
180 "crate_id": 0,
181 "name": "things",
182 "source": {
183 "filename": "$TEST_BASE_DIR/structs.rs",
184 "begin": [
185 16,
186 4
187 ],
188 "end": [
189 16,
190 25
191 ]
192 },
193 "visibility": "default",
194 "docs": "",
195 "links": {},
196 "attrs": [],
197 "deprecation": null,
198 "kind": "struct_field",
199 "inner": {
200 "kind": "resolved_path",
201 "inner": {
202 "name": "HashMap",
203 "id": "1:6600",
204 "args": {
205 "angle_bracketed": {
206 "args": [
207 {
208 "type": {
209 "kind": "generic",
210 "inner": "U"
211 }
212 },
213 {
214 "type": {
215 "kind": "generic",
216 "inner": "U"
217 }
218 }
219 ],
220 "bindings": []
221 }
222 },
223 "param_names": []
224 }
225 }
226 },
227 "0:15": {
228 "crate_id": 0,
229 "name": "WithGenerics",
230 "source": {
231 "filename": "$TEST_BASE_DIR/structs.rs",
232 "begin": [
233 14,
234 0
235 ],
236 "end": [
237 17,
238 1
239 ]
240 },
241 "visibility": "public",
242 "docs": "",
243 "links": {},
244 "attrs": [],
245 "deprecation": null,
246 "kind": "struct",
247 "inner": {
248 "struct_type": "plain",
249 "generics": {
250 "params": [
251 {
252 "name": "T",
253 "kind": {
254 "type": {
255 "bounds": [],
256 "default": null
257 }
258 }
259 },
260 {
261 "name": "U",
262 "kind": {
263 "type": {
264 "bounds": [],
265 "default": null
266 }
267 }
268 }
269 ],
270 "where_predicates": []
271 },
272 "fields_stripped": true
273 }
274 },
275 "0:0": {
276 "crate_id": 0,
277 "name": "structs",
278 "source": {
279 "filename": "$TEST_BASE_DIR/structs.rs",
280 "begin": [
281 1,
282 0
283 ],
284 "end": [
285 17,
286 1
287 ]
288 },
289 "visibility": "public",
290 "docs": "",
291 "links": {},
292 "attrs": [],
293 "deprecation": null,
294 "kind": "module",
295 "inner": {
296 "is_crate": true,
297 "items": [
298 "0:4",
299 "0:5",
300 "0:9",
301 "0:11",
302 "0:15"
303 ]
304 }
305 },
306 "0:13": {
307 "crate_id": 0,
308 "name": "num",
309 "source": {
310 "filename": "$TEST_BASE_DIR/structs.rs",
311 "begin": [
312 10,
313 4
314 ],
315 "end": [
316 10,
317 12
318 ]
319 },
320 "visibility": "default",
321 "docs": "",
322 "links": {},
323 "attrs": [],
324 "deprecation": null,
325 "kind": "struct_field",
326 "inner": {
327 "kind": "primitive",
328 "inner": "u32"
329 }
330 },
331 "0:5": {
332 "crate_id": 0,
333 "name": "Tuple",
334 "source": {
335 "filename": "$TEST_BASE_DIR/structs.rs",
336 "begin": [
337 5,
338 0
339 ],
340 "end": [
341 5,
342 30
343 ]
344 },
345 "visibility": "public",
346 "docs": "",
347 "links": {},
348 "attrs": [],
349 "deprecation": null,
350 "kind": "struct",
351 "inner": {
352 "struct_type": "tuple",
353 "generics": {
354 "params": [],
355 "where_predicates": []
356 },
357 "fields_stripped": true
358 }
359 },
360 "0:4": {
361 "crate_id": 0,
362 "name": "PlainEmpty",
363 "source": {
364 "filename": "$TEST_BASE_DIR/structs.rs",
365 "begin": [
366 3,
367 0
368 ],
369 "end": [
370 3,
371 24
372 ]
373 },
374 "visibility": "public",
375 "docs": "",
376 "links": {},
377 "attrs": [],
378 "deprecation": null,
379 "kind": "struct",
380 "inner": {
381 "struct_type": "plain",
382 "generics": {
383 "params": [],
384 "where_predicates": []
385 },
386 "fields_stripped": false,
387 "fields": []
388 }
389 },
390 "0:7": {
391 "crate_id": 0,
392 "name": "0",
393 "source": {
394 "filename": "$TEST_BASE_DIR/structs.rs",
395 "begin": [
396 5,
397 17
398 ],
399 "end": [
400 5,
401 20
402 ]
403 },
404 "visibility": "default",
405 "docs": "",
406 "links": {},
407 "attrs": [],
408 "deprecation": null,
409 "kind": "struct_field",
410 "inner": {
411 "kind": "primitive",
412 "inner": "u32"
413 }
414 }
415 },
416 "paths": {
417 "5:4322": {
418 "crate_id": 5,
419 "path": [
420 "alloc",
421 "vec",
422 "Vec"
423 ],
424 "kind": "struct"
425 },
426 "5:5035": {
427 "crate_id": 5,
428 "path": [
429 "alloc",
430 "string",
431 "String"
432 ],
433 "kind": "struct"
434 },
435 "1:6600": {
436 "crate_id": 1,
437 "path": [
438 "std",
439 "collections",
440 "hash",
441 "map",
442 "HashMap"
443 ],
444 "kind": "struct"
445 }
446 },
447 "external_crates": {
448 "1": {
449 "name": "std"
450 },
451 "5": {
452 "name": "alloc"
453 }
454 },
455 "format_version": 1
456}