add derive_err_kind() and more docs

This commit is contained in:
Harald Hoyer 2019-03-07 16:50:16 +01:00
parent c014f1a922
commit 51af6da378
No known key found for this signature in database
GPG key ID: 340F12141EA0994D
6 changed files with 331 additions and 20 deletions

View file

@ -15,5 +15,6 @@
- [Debug for the ErrorKind](tutorial11.md)
- [Deref for the ErrorKind](tutorial12.md)
- [Writing a library](tutorial13.md)
- [Going back to std](tutorial14.md)
[The End](end.md)

9
booksrc/tutorial14.md Normal file
View file

@ -0,0 +1,9 @@
# Going back to std
Not using `chainerror` and going full `std` would look like this:
Btw, the code size is bigger than using `chainerror` :-)
~~~rust
{{#include ../examples/tutorial14.rs}}
~~~