Notes for book of Effective Rust
Charpter8
Charpter4
Mutual error types
If you want to mutually create a error type, some trait should be implemented by yourself.
Enum type to represent multi errors
If you want to implement the different upstream errors to concrate MyError, a fair amount of boilerplate should be added. But the crate of thiserror solves this.
Charpter3
The methods for Result or Option
The syntactic surgar of ?
But explicitly convertion may be not necessary if the external error has implemented the From trait for the internal Error type.