File tree
387 files changed
+7160
-2840
lines changed- .cargo
- .github/workflows
- ci
- listings
- ch02-guessing-game-tutorial
- listing-02-01/src
- listing-02-02
- listing-02-04
- no-listing-01-cargo-new
- no-listing-02-without-expect
- ch03-common-programming-concepts
- listing-03-02
- listing-03-04
- no-listing-01-variables-are-immutable
- no-listing-02-adding-mut
- no-listing-03-shadowing
- no-listing-05-mut-cant-change-types
- no-listing-16-functions
- no-listing-17-functions-with-parameters
- no-listing-18-functions-with-multiple-parameters
- no-listing-19-statements-vs-expressions
- no-listing-21-function-return-values
- no-listing-23-statements-dont-return-values
- no-listing-26-if-true
- no-listing-27-if-false
- no-listing-28-if-condition-must-be-bool
- no-listing-30-else-if
- no-listing-31-arms-must-return-same-type
- no-listing-32-5-loop-labels
- output-only-01-no-type-annotations
- ch04-understanding-ownership
- listing-04-01/src
- listing-04-03/src
- listing-04-05/src
- listing-04-06
- no-listing-01-can-mutate-string/src
- no-listing-04-cant-use-after-move
- src
- no-listing-05-clone/src
- no-listing-06-copy/src
- no-listing-07-reference/src
- no-listing-08-reference-with-annotations/src
- no-listing-10-multiple-mut-not-allowed
- no-listing-12-immutable-and-mutable-not-allowed
- no-listing-13-reference-scope-ends/src
- no-listing-14-dangling-reference
- no-listing-19-slice-error
- src
- ch06-enums-and-pattern-matching
- listing-06-06/src
- no-listing-07-cant-use-option-directly
- no-listing-09-variable-in-pattern/src
- no-listing-10-non-exhaustive-match
- no-listing-12-if-let/src
- no-listing-13-count-and-announce-match/src
- no-listing-14-count-and-announce-if-let-else/src
- ch07-managing-growing-projects
- listing-07-03
- listing-07-05
- listing-07-12
- quick-reference-example
- src
- ch08-common-collections
- listing-08-06
- listing-08-14/src
- listing-08-19
- listing-08-23/src
- listing-08-24/src
- listing-08-25/src
- output-only-01-not-char-boundary
- ch09-error-handling
- listing-09-01
- listing-09-04
- src
- listing-09-05/src
- listing-09-10
- listing-09-13/src
- no-listing-01-panic
- ch10-generic-types-traits-and-lifetimes
- listing-10-01/src
- listing-10-02/src
- listing-10-03/src
- listing-10-04/src
- listing-10-05
- src
- listing-10-07
- listing-10-16
- src
- listing-10-17/src
- listing-10-18/src
- listing-10-19/src
- listing-10-20
- src
- listing-10-21/src
- listing-10-22/src
- listing-10-23
- src
- listing-10-24/src
- no-listing-08-only-one-reference-with-lifetime/src
- no-listing-10-lifetimes-on-methods/src
- no-listing-11-generics-traits-and-lifetimes/src
- ch11-writing-automated-tests
- listing-11-01
- src
- listing-11-03
- src
- listing-11-05/src
- listing-11-06
- listing-11-07
- src
- listing-11-08
- src
- listing-11-09/src
- listing-11-10
- src
- listing-11-11
- src
- listing-11-12/src
- listing-11-13
- src
- tests
- no-listing-01-changing-test-name
- src
- no-listing-02-adding-another-rectangle-test
- no-listing-03-introducing-a-bug
- no-listing-04-bug-in-add-two
- src
- no-listing-05-greeter/src
- no-listing-06-greeter-with-bug
- no-listing-07-custom-failure-message
- src
- no-listing-08-guess-with-bug
- src
- no-listing-09-guess-with-panic-msg-bug
- src
- no-listing-10-result-in-tests/src
- no-listing-11-ignore-a-test
- src
- output-only-01-show-output
- src
- output-only-02-single-test
- output-only-03-multiple-tests
- output-only-04-running-ignored
- output-only-05-single-integration
- src
- tests
- ch12-an-io-project
- listing-12-01
- listing-12-02
- src
- listing-12-03/src
- listing-12-04
- src
- listing-12-05/src
- listing-12-07
- listing-12-08
- listing-12-10
- listing-12-12
- listing-12-16
- listing-12-19
- listing-12-21
- listing-12-23
- no-listing-02-using-search-in-run
- output-only-01-with-args
- output-only-02-missing-lifetimes
- output-only-03-multiple-matches
- output-only-04-no-matches
- ch13-functional-features
- listing-13-01
- listing-13-03
- listing-13-04
- src
- listing-13-05
- src
- listing-13-06/src
- listing-13-07
- src
- listing-13-08
- src
- listing-13-09/src
- listing-13-11/src
- listing-13-14
- ch14-more-about-cargo/output-only-02-add-one/add/add_one/src
- ch15-smart-pointers
- listing-15-01/src
- listing-15-03
- listing-15-09
- listing-15-14
- listing-15-15
- listing-15-16
- listing-15-17
- listing-15-19
- listing-15-21
- listing-15-23
- listing-15-24
- src
- listing-15-26
- no-listing-01-cant-borrow-immutable-as-mutable
- output-only-01-comparing-to-reference
- ch16-fearless-concurrency
- listing-16-01/src
- listing-16-02/src
- listing-16-03
- src
- listing-16-04/src
- listing-16-05/src
- listing-16-08/src
- listing-16-09
- src
- listing-16-10/src
- listing-16-11/src
- listing-16-12/src
- listing-16-13
- listing-16-14
- no-listing-01-join-too-early/src
- output-only-01-move-drop
- src
- ch17-oop/listing-17-10
- ch18-patterns-and-matching
- listing-18-02/src
- listing-18-03
- src
- listing-18-05
- listing-18-07/src
- listing-18-08
- listing-18-09/src
- listing-18-10
- src
- listing-18-11/src
- listing-18-15/src
- listing-18-17/src
- listing-18-18/src
- listing-18-21/src
- listing-18-22/src
- listing-18-23/src
- listing-18-25
- src
- listing-18-26/src
- listing-18-27/src
- listing-18-29/src
- ch19-advanced-features
- listing-19-05
- listing-19-09/src
- listing-19-10/src
- listing-19-18
- listing-19-19
- listing-19-20
- listing-19-21
- listing-19-22/src
- listing-19-23/src
- listing-19-27/src
- listing-19-31/hello_macro/hello_macro_derive
- src
- listing-19-33/hello_macro/hello_macro_derive
- src
- no-listing-02-impl-outlineprint-for-point
- src
- no-listing-03-impl-display-for-point/src
- no-listing-18-returns-closure
- no-listing-21-pancakes
- hello_macro/hello_macro_derive
- src
- pancakes
- output-only-01-missing-unsafe
- ch20-web-server
- listing-20-02/src
- listing-20-12
- listing-20-17
- listing-20-22
- listing-20-25/src
- no-listing-01-define-threadpool-struct
- no-listing-02-impl-threadpool-new
- no-listing-03-define-execute
- no-listing-04-update-worker-definition
- no-listing-07-final-code/src
- nostarch
- packages
- mdbook-trpl-listing
- src
- mdbook-trpl-note
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
387 files changed
+7160
-2840
lines changedFile renamed without changes.
Lines changed: 51 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
| 12 | + | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 |
| - | |
| 37 | + | |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
69 | 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 | + | |
70 | 116 |
| |
71 | 117 |
| |
72 | 118 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
| 11 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
| 73 | + |
0 commit comments