1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-11-15 13:34:07 +01:00
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
collections
conversions fix(from_str, try_from_into): custom error types 2021-06-24 21:33:41 -05:00
enums
error_handling address review feedback 2021-06-09 23:27:53 -05:00
functions
generics
if
macros
modules
move_semantics
option
primitive_types
standard_library_types
strings
structs
tests
threads
traits
variables
quiz1.rs
quiz2.rs
quiz3.rs
quiz4.rs
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