rustlings/exercises
Taylor Yu 2dc93cadda fix(from_str, try_from_into): custom error types
Remove the use of trait objects as errors from `from_str` and
`try_from_into`; they seem to have caused a lot of confusion in
practice. (Also, it's considered best practice to use custom error
types instead of boxed errors in library code.) Instead, use custom
error enums, and update hints accordingly. Hints also provide
some guidance about converting errors, which could be covered
more completely in a future advanced errors section.

Also move from_str to directly after the similar exercise `from_into`,
for the sake of familiarity when solving.
2021-06-24 21:33:41 -05:00
..
clippy docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
collections docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
conversions fix(from_str, try_from_into): custom error types 2021-06-24 21:33:41 -05:00
enums docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
error_handling address review feedback 2021-06-09 23:27:53 -05:00
functions docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
generics fix: add hints to generics1 and generics2 exercises 2021-05-11 14:50:05 -05:00
if docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
macros docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
modules docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
move_semantics fix: move_semantics5 hints 2021-05-22 22:09:58 -05:00
option feat: Add move_semantics5 exercise. (#746) 2021-05-17 14:10:40 +02:00
primitive_types docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
standard_library_types fix(iterators5): derive Clone, Copy 2021-06-06 17:38:02 -05:00
strings docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
structs fix: remove trailing whitespace 2021-05-09 17:58:54 -05:00
tests docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
threads docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
traits docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
variables fix(variables5): confine the answer further 2021-06-07 18:22:55 +08:00
README.md fix: added missing exercises to info.toml 2020-12-12 10:34:59 -08:00
quiz1.rs chore: Update quiz1.rs add explicit test for 40 2021-04-25 19:02:50 +02:00
quiz2.rs fix(exercises): adding question mark to quiz2 2020-08-25 16:38:41 +02:00
quiz3.rs fix(quiz3): Force an answer to Q2 (#672) 2021-03-16 10:14:25 +01:00
quiz4.rs feat: renames test to quiz, fixes #244 2020-05-19 18:47:44 +02:00

README.md

Exercise to Book Chapter mapping

Exercise Book Chapter
variables §3.1
functions §3.3
if §3.5
move_semantics §4.1
primitive_types §4.3
structs §5.1
enums §6
modules §7.2
collections §8.1
strings §8.2
error_handling §9
generics §10
option §10.1
traits §10.2
tests §11.1
standard_library_types §13.2
threads §16.1
macros §19.6
clippy n/a
conversions n/a