mirror of
https://github.com/haraldh/chainerror.git
synced 2025-05-31 13:58:07 +02:00
add derive_err_kind() and more docs
This commit is contained in:
parent
c014f1a922
commit
51af6da378
6 changed files with 331 additions and 20 deletions
|
@ -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
9
booksrc/tutorial14.md
Normal 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}}
|
||||
~~~
|
Loading…
Add table
Add a link
Reference in a new issue