-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrust-book.json
386 lines (386 loc) · 6.74 KB
/
rust-book.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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
[
{
"title": "The Rust Programming Language",
"state": 2
},
{
"title": "Foreword",
"state": 2
},
{
"title": "Introduction",
"state": 2
},
{
"title": "1. Getting Started",
"state": 2
},
{
"title": "1.1. Installation",
"state": 2
},
{
"title": "1.2. Hello, World!",
"state": 2
},
{
"title": "1.3. Hello, Cargo!",
"state": 2
},
{
"title": "2. Programming a Guessing Game",
"state": 2
},
{
"title": "3. Common Programming Concepts",
"state": 2
},
{
"title": "3.1. Variables and Mutability",
"state": 2
},
{
"title": "3.2. Data Types",
"state": 2
},
{
"title": "3.3. Functions",
"state": 2
},
{
"title": "3.4. Comments",
"state": 2
},
{
"title": "3.5. Control Flow",
"state": 2
},
{
"title": "4. Understanding Ownership",
"state": 2
},
{
"title": "4.1. What is Ownership?",
"state": 2
},
{
"title": "4.2. References and Borrowing",
"state": 2
},
{
"title": "4.3. The Slice Type",
"state": 2
},
{
"title": "5. Using Structs to Structure Related Data",
"state": 2
},
{
"title": "5.1. Defining and Instantiating Structs",
"state": 2
},
{
"title": "5.2. An Example Program Using Structs",
"state": 2
},
{
"title": "5.3. Method Syntax",
"state": 2
},
{
"title": "6. Enums and Pattern Matching",
"state": 2
},
{
"title": "6.1. Defining an Enum",
"state": 2
},
{
"title": "6.2. The match Control Flow Construct",
"state": 2
},
{
"title": "6.3. Concise Control Flow with if let",
"state": 2
},
{
"title": "7. Managing Growing Projects with Packages, Crates, and Modules",
"state": 2
},
{
"title": "7.1. Packages and Crates",
"state": 2
},
{
"title": "7.2. Defining Modules to Control Scope and Privacy",
"state": 2
},
{
"title": "7.3. Paths for Referring to an Item in the Module Tree",
"state": 2
},
{
"title": "7.4. Bringing Paths Into Scope with the use Keyword",
"state": 2
},
{
"title": "7.5. Separating Modules into Different Files",
"state": 2
},
{
"title": "8. Common Collections",
"state": 2
},
{
"title": "8.1. Storing Lists of Values with Vectors",
"state": 2
},
{
"title": "8.2. Storing UTF-8 Encoded Text with Strings",
"state": 2
},
{
"title": "8.3. Storing Keys with Associated Values in Hash Maps",
"state": 2
},
{
"title": "9. Error Handling",
"state": 2
},
{
"title": "9.1. Unrecoverable Errors with panic!",
"state": 2
},
{
"title": "9.2. Recoverable Errors with Result",
"state": 1
},
{
"title": "9.3. To panic! or Not to panic!",
"state": 0
},
{
"title": "10. Generic Types, Traits, and Lifetimes",
"state": 0
},
{
"title": "10.1. Generic Data Types",
"state": 0
},
{
"title": "10.2. Traits: Defining Shared Behavior",
"state": 0
},
{
"title": "10.3. Validating References with Lifetimes",
"state": 0
},
{
"title": "11. Writing Automated Tests",
"state": 0
},
{
"title": "11.1. How to Write Tests",
"state": 0
},
{
"title": "11.2. Controlling How Tests Are Run",
"state": 0
},
{
"title": "11.3. Test Organization",
"state": 0
},
{
"title": "12. An I/O Project: Building a Command Line Program",
"state": 0
},
{
"title": "12.1. Accepting Command Line Arguments",
"state": 0
},
{
"title": "12.2. Reading a File",
"state": 0
},
{
"title": "12.3. Refactoring to Improve Modularity and Error Handling",
"state": 0
},
{
"title": "12.4. Developing the Library\u00e2\u0080\u0099s Functionality with Test Driven Development",
"state": 0
},
{
"title": "12.5. Working with Environment Variables",
"state": 0
},
{
"title": "12.6. Writing Error Messages to Standard Error Instead of Standard Output",
"state": 0
},
{
"title": "13. Functional Language Features: Iterators and Closures",
"state": 0
},
{
"title": "13.1. Closures: Anonymous Functions that Capture Their Environment",
"state": 0
},
{
"title": "13.2. Processing a Series of Items with Iterators",
"state": 0
},
{
"title": "13.3. Improving Our I/O Project",
"state": 0
},
{
"title": "13.4. Comparing Performance: Loops vs. Iterators",
"state": 0
},
{
"title": "14. More about Cargo and Crates.io",
"state": 0
},
{
"title": "14.1. Customizing Builds with Release Profiles",
"state": 0
},
{
"title": "14.2. Publishing a Crate to Crates.io",
"state": 0
},
{
"title": "14.3. Cargo Workspaces",
"state": 0
},
{
"title": "14.4. Installing Binaries from Crates.io with cargo install",
"state": 0
},
{
"title": "14.5. Extending Cargo with Custom Commands",
"state": 0
},
{
"title": "15. Smart Pointers",
"state": 0
},
{
"title": "15.1. Using Box<T> to Point to Data on the Heap",
"state": 0
},
{
"title": "15.2. Treating Smart Pointers Like Regular References with the Deref Trait",
"state": 0
},
{
"title": "15.3. Running Code on Cleanup with the Drop Trait",
"state": 0
},
{
"title": "15.4. Rc<T>, the Reference Counted Smart Pointer",
"state": 0
},
{
"title": "15.5. RefCell<T> and the Interior Mutability Pattern",
"state": 0
},
{
"title": "15.6. Reference Cycles Can Leak Memory",
"state": 0
},
{
"title": "16. Fearless Concurrency",
"state": 0
},
{
"title": "16.1. Using Threads to Run Code Simultaneously",
"state": 0
},
{
"title": "16.2. Using Message Passing to Transfer Data Between Threads",
"state": 0
},
{
"title": "16.3. Shared-State Concurrency",
"state": 0
},
{
"title": "16.4. Extensible Concurrency with the Sync and Send Traits",
"state": 0
},
{
"title": "17. Object Oriented Programming Features of Rust",
"state": 0
},
{
"title": "17.1. Characteristics of Object-Oriented Languages",
"state": 0
},
{
"title": "17.2. Using Trait Objects That Allow for Values of Different Types",
"state": 0
},
{
"title": "17.3. Implementing an Object-Oriented Design Pattern",
"state": 0
},
{
"title": "18. Patterns and Matching",
"state": 0
},
{
"title": "18.1. All the Places Patterns Can Be Used",
"state": 0
},
{
"title": "18.2. Refutability: Whether a Pattern Might Fail to Match",
"state": 0
},
{
"title": "18.3. Pattern Syntax",
"state": 0
},
{
"title": "19. Advanced Features",
"state": 0
},
{
"title": "19.1. Unsafe Rust",
"state": 0
},
{
"title": "19.2. Advanced Traits",
"state": 0
},
{
"title": "19.3. Advanced Types",
"state": 0
},
{
"title": "19.4. Advanced Functions and Closures",
"state": 0
},
{
"title": "19.5. Macros",
"state": 0
},
{
"title": "20. Final Project: Building a Multithreaded Web Server",
"state": 0
},
{
"title": "20.1. Building a Single-Threaded Web Server",
"state": 0
},
{
"title": "20.2. Turning Our Single-Threaded Server into a Multithreaded Server",
"state": 0
},
{
"title": "20.3. Graceful Shutdown and Cleanup",
"state": 0
}
]