forked from rust-lang/rust-by-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructure.json
196 lines (196 loc) · 11.2 KB
/
structure.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[
{ "id": "hello", "title": "Hello World", "children": [
{ "id": "comment", "title": "Comments", "children": null },
{ "id": "print", "title": "Formatted print", "children": [
{ "id": "print_debug", "title": "Debug", "children": null },
{ "id": "print_display", "title": "Display", "children": [
{ "id": "testcase_list", "title": "Testcase: List", "children": null }
] },
{ "id": "fmt", "title": "Formatting", "children": null }
] }
] },
{ "id": "primitives", "title": "Primitives", "children": [
{ "id": "literals", "title": "Literals and operators", "children": null },
{ "id": "tuples", "title": "Tuples", "children": null },
{ "id": "array", "title": "Arrays and Slices", "children": null }
] },
{ "id": "custom_types", "title": "Custom types", "children": [
{ "id": "structs", "title": "Structures", "children": null },
{ "id": "enum", "title": "Enums", "children": [
{ "id": "enum_use", "title": "use", "children": null },
{ "id": "c_like", "title": "C-like", "children": null },
{ "id": "testcase_linked_list", "title": "Testcase: linked-list", "children": null }
] },
{ "id": "constants", "title": "constants", "children": null }
] },
{ "id": "variable_bindings", "title": "Variable Bindings", "children": [
{ "id": "mut", "title": "Mutability", "children": null },
{ "id": "scope", "title": "Scope and shadowing", "children": null },
{ "id": "declare", "title": "Declare first", "children": null }
] },
{ "id": "cast", "title": "Casting", "children": [
{ "id": "literals", "title": "Literals", "children": null },
{ "id": "inference", "title": "Inference", "children": null },
{ "id": "alias", "title": "Alias", "children": null }
] },
{ "id": "expression", "title": "Expressions", "children": null },
{ "id": "flow_control", "title": "Flow Control", "children": [
{ "id": "if_else", "title": "if/else", "children": null },
{ "id": "loop", "title": "loop", "children": [
{ "id": "nested", "title": "Nesting and labels", "children": null }
] },
{ "id": "while", "title": "while", "children": null },
{ "id": "for", "title": "for and range", "children": null },
{ "id": "match", "title": "match", "children": [
{ "id": "destructuring", "title": "Destructuring", "children": [
{ "id": "destructure_tuple", "title": "tuples", "children": null },
{ "id": "destructure_enum", "title": "enums", "children": null },
{ "id": "destructure_pointers", "title": "pointers/ref", "children": null },
{ "id": "destructure_structures", "title": "structs", "children": null }
] },
{ "id": "guard", "title": "Guards", "children": null },
{ "id": "binding", "title": "Binding", "children": null }
] },
{ "id": "if_let", "title": "if let", "children": null },
{ "id": "while_let", "title": "while let", "children": null }
] },
{ "id": "fn", "title": "Functions", "children": [
{ "id": "methods", "title": "Methods", "children": null },
{ "id": "closures", "title": "Closures", "children": [
{ "id": "capture", "title": "Capturing", "children": null },
{ "id": "input_parameters", "title": "As input parameters", "children": null },
{ "id": "anonymity", "title": "Type anonymity", "children": null },
{ "id": "input_functions", "title": "Input functions", "children": null },
{ "id": "output_parameters", "title": "As output parameters", "children": null },
{ "id": "closure_examples", "title": "Examples in `std`", "children": [
{ "id": "iter_any", "title": "Iterator::any", "children": null },
{ "id": "iter_find", "title": "Iterator::find", "children": null }
] }
] },
{ "id": "hof", "title": "Higher Order Functions", "children": null }
] },
{ "id": "mod", "title": "Modules", "children": [
{ "id": "visibility", "title": "Visibility", "children": null },
{ "id": "struct_visibility", "title": "Struct visibility", "children": null },
{ "id": "use", "title": "The `use` declaration", "children": null },
{ "id": "super", "title": "`super` and `self`", "children": null },
{ "id": "split", "title": "File hierarchy", "children": null }
] },
{ "id": "crates", "title": "Crates", "children": [
{ "id": "lib", "title": "Library", "children": null },
{ "id": "link", "title": "`extern crate`", "children": null }
] },
{ "id": "attribute", "title": "Attributes", "children": [
{ "id": "unused", "title": "`dead_code`", "children": null },
{ "id": "crate", "title": "Crates", "children": null },
{ "id": "cfg", "title": "`cfg`", "children": [
{ "id": "custom", "title": "Custom", "children": null }
] }
] },
{ "id": "generics", "title": "Generics", "children": [
{ "id": "gen_fn", "title": "Functions", "children": null },
{ "id": "impl", "title": "Implementation", "children": null },
{ "id": "gen_trait", "title": "Traits", "children": null },
{ "id": "bounds", "title": "Bounds", "children": [
{ "id": "testcase_empty", "title": "Testcase: empty bounds", "children": null }
] },
{ "id": "multi_bounds", "title": "Multiple bounds", "children": null },
{ "id": "where", "title": "Where clauses", "children": null },
{ "id": "assoc_items", "title": "Associated items", "children": [
{ "id": "the_problem", "title": "The Problem", "children": null },
{ "id": "types", "title": "Associated types", "children": null }
] },
{ "id": "phantom", "title": "Phantom type parameters", "children": [
{ "id": "testcase_units", "title": "Testcase: unit conversions", "children": null }
] }
] },
{ "id": "scope", "title": "Scoping rules", "children": [
{ "id": "raii", "title": "RAII", "children": null },
{ "id": "move", "title": "Ownership and moves", "children": [
{ "id": "mut", "title": "Mutability", "children": null }
] },
{ "id": "borrow", "title": "Borrowing", "children": [
{ "id": "mut", "title": "Mutability", "children": null },
{ "id": "freeze", "title": "Freezing", "children": null },
{ "id": "alias", "title": "Aliasing", "children": null },
{ "id": "ref", "title": "The ref pattern", "children": null }
] },
{ "id": "lifetime", "title": "Lifetimes", "children": [
{ "id": "explicit", "title": "Explicit annotation", "children": null },
{ "id": "fn", "title": "Functions", "children": null },
{ "id": "methods", "title": "Methods", "children": null },
{ "id": "struct", "title": "Structs", "children": null },
{ "id": "lifetime_bounds", "title": "Bounds", "children": null },
{ "id": "lifetime_coercion", "title": "Coercion", "children": null },
{ "id": "static_lifetime", "title": "static", "children": null },
{ "id": "elision", "title": "elision", "children": null }
] }
] },
{ "id": "trait", "title": "Traits", "children": [
{ "id": "derive", "title": "Derive", "children": null },
{ "id": "ops", "title": "Operator Overloading", "children": null },
{ "id": "drop", "title": "Drop", "children": null },
{ "id": "iter", "title": "Iterators", "children": null },
{ "id": "clone", "title": "Clone", "children": null }
] },
{ "id": "macros", "title": "macro_rules!", "children": [
{ "id": "designators", "title": "Designators", "children": null },
{ "id": "overload", "title": "Overload", "children": null },
{ "id": "repeat", "title": "Repeat", "children": null },
{ "id": "dry", "title": "DRY (Don't Repeat Yourself)", "children": null }
] },
{ "id": "error", "title": "Error handling", "children": [
{ "id": "unwrap", "title": "Option & unwrap", "children": null },
{ "id": "map", "title": "map", "children": null },
{ "id": "and_then", "title": "and_then", "children": null },
{ "id": "result", "title": "Result", "children": [
{ "id": "result_map", "title": "map for Result", "children": null },
{ "id": "result_alias", "title": "aliases for Result", "children": null }
] },
{ "id": "option_with_result", "title": "Options with Results", "children": [
{ "id": "result_string_errors", "title": "Errors as strings", "children": null },
{ "id": "combinator_combinations", "title": "Combining separate combinators", "children": null },
{ "id": "enter_try", "title": "Enter try!", "children": null }
] },
{ "id": "limits_of_strings", "title": "The limits of strings", "children": null },
{ "id": "reenter_try", "title": "Re-enter try!", "children": null },
{ "id": "reenabling_box", "title": "Re-enabling box", "children": null }
] },
{ "id": "std", "title": "Std library types", "children": [
{ "id": "box", "title": "Box, stack and heap", "children": null },
{ "id": "vec", "title": "Vectors", "children": null },
{ "id": "str", "title": "Strings", "children": null },
{ "id": "option", "title": "`Option`", "children": null },
{ "id": "result", "title": "`Result`", "children": [
{ "id": "try", "title": "`try!`", "children": null }
] },
{ "id": "panic", "title": "`panic!`", "children": null },
{ "id": "hash", "title": "HashMap", "children": [
{ "id": "alt_key_types", "title": "Alternate/custom key types", "children": null},
{ "id": "hashset", "title": "HashSet", "children": null }
] }
] },
{ "id": "std_misc", "title": "Std misc", "children": [
{ "id": "threads", "title": "Threads", "children": null },
{ "id": "channels", "title": "Channels", "children": null },
{ "id": "path", "title": "Path", "children": null },
{ "id": "file", "title": "File I/O", "children": [
{ "id": "open", "title": "`open`", "children": null },
{ "id": "create", "title": "`create`", "children": null }
] },
{ "id": "process", "title": "Child processes", "children": [
{ "id": "pipe", "title": "Pipes", "children": null },
{ "id": "wait", "title": "Wait", "children": null }
] },
{ "id": "fs", "title": "Filesystem Operations", "children": null },
{ "id": "arg", "title": "Program arguments", "children": [
{ "id": "matching", "title": "Argument parsing", "children": null }
] },
{ "id": "ffi", "title": "Foreign Function Interface", "children": null }
] },
{ "id": "meta", "title": "Meta", "children": [
{ "id": "doc", "title": "Documentation", "children": null },
{ "id": "test", "title": "Testing", "children": null }
] },
{ "id": "unsafe", "title": "Unsafe operations", "children": null }
]