File tree
681 files changed
+870
-894
lines changed- .github/workflows
- ci
- listings
- ch02-guessing-game-tutorial
- listing-02-01
- listing-02-02
- listing-02-03
- listing-02-04
- listing-02-05
- listing-02-06
- no-listing-01-cargo-new
- no-listing-02-without-expect
- no-listing-03-convert-string-to-number
- no-listing-04-looping
- no-listing-05-quitting
- ch03-common-programming-concepts
- listing-03-01
- listing-03-02
- listing-03-03
- listing-03-04
- listing-03-05
- no-listing-01-variables-are-immutable
- no-listing-02-adding-mut
- no-listing-03-shadowing
- no-listing-04-shadowing-can-change-types
- no-listing-05-mut-cant-change-types
- no-listing-06-floating-point
- no-listing-07-numeric-operations
- no-listing-08-boolean
- no-listing-09-char
- no-listing-10-tuples
- no-listing-11-destructuring-tuples
- no-listing-12-tuple-indexing
- no-listing-13-arrays
- no-listing-14-array-indexing
- no-listing-15-invalid-array-access
- 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-20-blocks-are-expressions
- no-listing-21-function-return-values
- no-listing-22-function-parameter-and-return
- no-listing-23-statements-dont-return-values
- no-listing-24-comments-end-of-line
- no-listing-25-comments-above-line
- no-listing-26-if-true
- no-listing-27-if-false
- no-listing-28-if-condition-must-be-bool
- no-listing-29-if-not-equal-0
- no-listing-30-else-if
- no-listing-31-arms-must-return-same-type
- no-listing-32-5-loop-labels
- no-listing-32-loop
- no-listing-33-return-value-from-loop
- no-listing-34-for-range
- output-only-01-no-type-annotations
- ch04-understanding-ownership
- listing-04-01
- listing-04-02
- listing-04-03
- listing-04-04
- listing-04-05
- listing-04-06
- listing-04-07
- listing-04-08
- listing-04-09
- no-listing-01-can-mutate-string
- src
- no-listing-02-string-scope
- no-listing-03-string-move
- no-listing-04-cant-use-after-move
- no-listing-04b-replacement-drop
- no-listing-05-clone
- no-listing-06-copy
- no-listing-07-reference
- no-listing-08-reference-with-annotations
- no-listing-09-fixes-listing-04-06
- no-listing-10-multiple-mut-not-allowed
- no-listing-11-muts-in-separate-scopes
- no-listing-12-immutable-and-mutable-not-allowed
- no-listing-13-reference-scope-ends
- no-listing-14-dangling-reference
- no-listing-15-dangling-reference-annotated
- no-listing-16-no-dangle
- no-listing-17-slice
- no-listing-18-first-word-slice
- no-listing-19-slice-error
- ch06-enums-and-pattern-matching
- listing-06-01
- listing-06-02
- listing-06-03
- listing-06-04
- listing-06-05
- listing-06-06
- listing-06-07
- listing-06-08
- listing-06-09
- no-listing-01-defining-enums
- no-listing-02-enum-with-data
- no-listing-03-variants-with-different-data
- no-listing-04-structs-similar-to-message-enum
- src
- no-listing-05-methods-on-enums
- no-listing-06-option-examples
- no-listing-07-cant-use-option-directly
- no-listing-08-match-arm-multiple-lines
- no-listing-09-variable-in-pattern
- no-listing-10-non-exhaustive-match
- no-listing-12-if-let
- no-listing-13-count-and-announce-match
- no-listing-14-count-and-announce-if-let-else
- no-listing-15-binding-catchall
- no-listing-16-underscore-catchall
- no-listing-17-underscore-unit
- ch07-managing-growing-projects
- listing-07-01
- listing-07-03
- listing-07-05
- listing-07-07
- listing-07-08
- listing-07-09
- listing-07-10
- listing-07-11
- listing-07-12
- listing-07-13
- listing-07-14
- listing-07-15
- listing-07-16
- listing-07-17
- listing-07-18
- listing-07-19
- listing-07-20
- listing-07-21-and-22
- no-listing-01-use-std-unnested
- no-listing-02-extracting-hosting
- quick-reference-example
- ch08-common-collections
- listing-08-01
- listing-08-02
- listing-08-03
- listing-08-04
- listing-08-05
- listing-08-06
- listing-08-07
- listing-08-08
- listing-08-09
- listing-08-10
- src
- listing-08-11
- listing-08-12
- listing-08-13
- listing-08-14
- listing-08-15
- listing-08-16
- listing-08-17
- listing-08-18
- src
- listing-08-19
- listing-08-20
- listing-08-21
- listing-08-22
- listing-08-23
- listing-08-24
- listing-08-25
- no-listing-01-concat-multiple-strings
- no-listing-02-format
- no-listing-03-iterate-over-hashmap
- output-only-01-not-char-boundary
- ch09-error-handling
- listing-09-01
- listing-09-03
- listing-09-04
- listing-09-05
- listing-09-06
- listing-09-07
- listing-09-08
- listing-09-09
- listing-09-10
- listing-09-11
- listing-09-12
- listing-09-13
- no-listing-01-panic
- no-listing-04-unwrap
- no-listing-05-expect
- no-listing-08-unwrap-that-cant-fail
- no-listing-09-guess-out-of-range
- ch10-generic-types-traits-and-lifetimes
- listing-10-01
- listing-10-02
- listing-10-03
- listing-10-04
- listing-10-05
- listing-10-06
- listing-10-07
- listing-10-08
- listing-10-09
- listing-10-10
- listing-10-11
- listing-10-12
- listing-10-13
- listing-10-14
- listing-10-15
- listing-10-16
- listing-10-17
- listing-10-18
- listing-10-19
- listing-10-20
- src
- listing-10-21
- src
- listing-10-22
- src
- listing-10-23
- src
- listing-10-24
- listing-10-25
- no-listing-01-calling-trait-method
- no-listing-02-calling-default-impl
- no-listing-03-default-impl-calls-other-methods
- no-listing-04-traits-as-parameters
- no-listing-05-returning-impl-trait
- no-listing-06-impl-trait-returns-one-type
- no-listing-07-where-clause
- no-listing-08-only-one-reference-with-lifetime
- no-listing-10-lifetimes-on-methods
- no-listing-11-generics-traits-and-lifetimes
- src
- ch11-writing-automated-tests
- listing-11-01
- listing-11-03
- listing-11-05
- listing-11-06
- listing-11-07
- listing-11-08
- listing-11-09
- listing-11-10
- listing-11-11
- listing-11-12
- listing-11-13
- no-listing-01-changing-test-name
- no-listing-02-adding-another-rectangle-test
- no-listing-03-introducing-a-bug
- no-listing-04-bug-in-add-two
- no-listing-05-greeter
- no-listing-06-greeter-with-bug
- no-listing-07-custom-failure-message
- no-listing-08-guess-with-bug
- no-listing-09-guess-with-panic-msg-bug
- no-listing-10-result-in-tests
- no-listing-11-ignore-a-test
- output-only-01-show-output
- output-only-02-single-test
- output-only-03-multiple-tests
- output-only-04-running-ignored
- output-only-05-single-integration
- ch12-an-io-project
- listing-12-01
- listing-12-02
- listing-12-03
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
681 files changed
+870
-894
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
| 15 | + | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 |
| - | |
| 50 | + | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
|
Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
| 154 | + | |
154 | 155 |
| |
155 | 156 |
| |
156 | 157 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
| 3 | + | |
| 4 | + | |
5 | 5 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
|
0 commit comments