]> git.proxmox.com Git - rustc.git/blob - src/doc/rust-by-example/src/SUMMARY.md
New upstream version 1.36.0+dfsg1
[rustc.git] / src / doc / rust-by-example / src / SUMMARY.md
1 # Summary
2
3 [Introduction](index.md)
4
5 - [Hello World](hello.md)
6 - [Comments](hello/comment.md)
7 - [Formatted print](hello/print.md)
8 - [Debug](hello/print/print_debug.md)
9 - [Display](hello/print/print_display.md)
10 - [Testcase: List](hello/print/print_display/testcase_list.md)
11 - [Formatting](hello/print/fmt.md)
12
13 - [Primitives](primitives.md)
14 - [Literals and operators](primitives/literals.md)
15 - [Tuples](primitives/tuples.md)
16 - [Arrays and Slices](primitives/array.md)
17
18 - [Custom Types](custom_types.md)
19 - [Structures](custom_types/structs.md)
20 - [Enums](custom_types/enum.md)
21 - [use](custom_types/enum/enum_use.md)
22 - [C-like](custom_types/enum/c_like.md)
23 - [Testcase: linked-list](custom_types/enum/testcase_linked_list.md)
24 - [constants](custom_types/constants.md)
25
26 - [Variable Bindings](variable_bindings.md)
27 - [Mutability](variable_bindings/mut.md)
28 - [Scope and Shadowing](variable_bindings/scope.md)
29 - [Declare first](variable_bindings/declare.md)
30
31 - [Types](types.md)
32 - [Casting](types/cast.md)
33 - [Literals](types/literals.md)
34 - [Inference](types/inference.md)
35 - [Aliasing](types/alias.md)
36
37 - [Conversion](conversion.md)
38 - [`From` and `Into`](conversion/from_into.md)
39 - [To and from `String`s](conversion/string.md)
40
41 - [Expressions](expression.md)
42
43 - [Flow Control](flow_control.md)
44 - [if/else](flow_control/if_else.md)
45 - [loop](flow_control/loop.md)
46 - [Nesting and labels](flow_control/loop/nested.md)
47 - [Returning from loops](flow_control/loop/return.md)
48 - [while](flow_control/while.md)
49 - [for and range](flow_control/for.md)
50 - [match](flow_control/match.md)
51 - [Destructuring](flow_control/match/destructuring.md)
52 - [tuples](flow_control/match/destructuring/destructure_tuple.md)
53 - [enums](flow_control/match/destructuring/destructure_enum.md)
54 - [pointers/ref](flow_control/match/destructuring/destructure_pointers.md)
55 - [structs](flow_control/match/destructuring/destructure_structures.md)
56 - [Guards](flow_control/match/guard.md)
57 - [Binding](flow_control/match/binding.md)
58 - [if let](flow_control/if_let.md)
59 - [while let](flow_control/while_let.md)
60
61 - [Functions](fn.md)
62 - [Methods](fn/methods.md)
63 - [Closures](fn/closures.md)
64 - [Capturing](fn/closures/capture.md)
65 - [As input parameters](fn/closures/input_parameters.md)
66 - [Type anonymity](fn/closures/anonymity.md)
67 - [Input functions](fn/closures/input_functions.md)
68 - [As output parameters](fn/closures/output_parameters.md)
69 - [Examples in `std`](fn/closures/closure_examples.md)
70 - [Iterator::any](fn/closures/closure_examples/iter_any.md)
71 - [Iterator::find](fn/closures/closure_examples/iter_find.md)
72 - [Higher Order Functions](fn/hof.md)
73 - [Diverging functions](fn/diverging.md)
74
75 - [Modules](mod.md)
76 - [Visibility](mod/visibility.md)
77 - [Struct visibility](mod/struct_visibility.md)
78 - [The `use` declaration](mod/use.md)
79 - [`super` and `self`](mod/super.md)
80 - [File hierarchy](mod/split.md)
81
82 - [Crates](crates.md)
83 - [Library](crates/lib.md)
84 - [`extern crate`](crates/link.md)
85
86 - [Cargo](cargo.md)
87 - [Dependencies](cargo/deps.md)
88 - [Conventions](cargo/conventions.md)
89 - [Tests](cargo/test.md)
90 - [Build Scripts](cargo/build_scripts.md)
91
92 - [Attributes](attribute.md)
93 - [`dead_code`](attribute/unused.md)
94 - [Crates](attribute/crate.md)
95 - [`cfg`](attribute/cfg.md)
96 - [Custom](attribute/cfg/custom.md)
97
98 - [Generics](generics.md)
99 - [Functions](generics/gen_fn.md)
100 - [Implementation](generics/impl.md)
101 - [Traits](generics/gen_trait.md)
102 - [Bounds](generics/bounds.md)
103 - [Testcase: empty bounds](generics/bounds/testcase_empty.md)
104 - [Multiple bounds](generics/multi_bounds.md)
105 - [Where clauses](generics/where.md)
106 - [New Type Idiom](generics/new_types.md)
107 - [Associated items](generics/assoc_items.md)
108 - [The Problem](generics/assoc_items/the_problem.md)
109 - [Associated types](generics/assoc_items/types.md)
110 - [Phantom type parameters](generics/phantom.md)
111 - [Testcase: unit clarification](generics/phantom/testcase_units.md)
112
113 - [Scoping rules](scope.md)
114 - [RAII](scope/raii.md)
115 - [Ownership and moves](scope/move.md)
116 - [Mutability](scope/move/mut.md)
117 - [Borrowing](scope/borrow.md)
118 - [Mutability](scope/borrow/mut.md)
119 - [Freezing](scope/borrow/freeze.md)
120 - [Aliasing](scope/borrow/alias.md)
121 - [The ref pattern](scope/borrow/ref.md)
122 - [Lifetimes](scope/lifetime.md)
123 - [Explicit annotation](scope/lifetime/explicit.md)
124 - [Functions](scope/lifetime/fn.md)
125 - [Methods](scope/lifetime/methods.md)
126 - [Structs](scope/lifetime/struct.md)
127 - [Traits](scope/lifetime/trait.md)
128 - [Bounds](scope/lifetime/lifetime_bounds.md)
129 - [Coercion](scope/lifetime/lifetime_coercion.md)
130 - [Static](scope/lifetime/static_lifetime.md)
131 - [Elision](scope/lifetime/elision.md)
132
133 - [Traits](trait.md)
134 - [Derive](trait/derive.md)
135 - [Operator Overloading](trait/ops.md)
136 - [Drop](trait/drop.md)
137 - [Iterators](trait/iter.md)
138 - [Clone](trait/clone.md)
139
140 - [macro_rules!](macros.md)
141 - [Syntax](macros/syntax.md)
142 - [Designators](macros/designators.md)
143 - [Overload](macros/overload.md)
144 - [Repeat](macros/repeat.md)
145 - [DRY (Don't Repeat Yourself)](macros/dry.md)
146 - [DSL (Domain Specific Languages)](macros/dsl.md)
147 - [Variadics](macros/variadics.md)
148
149 - [Error handling](error.md)
150 - [`panic`](error/panic.md)
151 - [`Option` & `unwrap`](error/option_unwrap.md)
152 - [Combinators: `map`](error/option_unwrap/map.md)
153 - [Combinators: `and_then`](error/option_unwrap/and_then.md)
154 - [`Result`](error/result.md)
155 - [`map` for `Result`](error/result/result_map.md)
156 - [aliases for `Result`](error/result/result_alias.md)
157 - [Early returns](error/result/early_returns.md)
158 - [Introducing `?`](error/result/enter_question_mark.md)
159 - [Multiple error types](error/multiple_error_types.md)
160 - [Pulling `Result`s out of `Option`s](error/multiple_error_types/option_result.md)
161 - [Defining an error type](error/multiple_error_types/define_error_type.md)
162 - [`Box`ing errors](error/multiple_error_types/boxing_errors.md)
163 - [Other uses of `?`](error/multiple_error_types/reenter_question_mark.md)
164 - [Wrapping errors](error/multiple_error_types/wrap_error.md)
165 - [Iterating over `Result`s](error/iter_result.md)
166
167 - [Std library types](std.md)
168 - [Box, stack and heap](std/box.md)
169 - [Vectors](std/vec.md)
170 - [Strings](std/str.md)
171 - [`Option`](std/option.md)
172 - [`Result`](std/result.md)
173 - [`?`](std/result/question_mark.md)
174 - [`panic!`](std/panic.md)
175 - [HashMap](std/hash.md)
176 - [Alternate/custom key types](std/hash/alt_key_types.md)
177 - [HashSet](std/hash/hashset.md)
178
179 - [Std misc](std_misc.md)
180 - [Threads](std_misc/threads.md)
181 - [Testcase: map-reduce](std_misc/threads/testcase_mapreduce.md)
182 - [Channels](std_misc/channels.md)
183 - [Path](std_misc/path.md)
184 - [File I/O](std_misc/file.md)
185 - [`open`](std_misc/file/open.md)
186 - [`create`](std_misc/file/create.md)
187 - [`read lines`](std_misc/file/read_lines.md)
188 - [Child processes](std_misc/process.md)
189 - [Pipes](std_misc/process/pipe.md)
190 - [Wait](std_misc/process/wait.md)
191 - [Filesystem Operations](std_misc/fs.md)
192 - [Program arguments](std_misc/arg.md)
193 - [Argument parsing](std_misc/arg/matching.md)
194 - [Foreign Function Interface](std_misc/ffi.md)
195
196 - [Testing](testing.md)
197 - [Unit testing](testing/unit_testing.md)
198 - [Documentation testing](testing/doc_testing.md)
199 - [Integration testing](testing/integration_testing.md)
200 - [Dev-dependencies](testing/dev_dependencies.md)
201
202 - [Unsafe Operations](unsafe.md)
203
204 - [Compatibility](compatibility.md)
205 - [Raw identifiers](compatibility/raw_identifiers.md)
206
207 - [Meta](meta.md)
208 - [Documentation](meta/doc.md)