14 releases (6 stable)
|1.2.3||Jan 2, 2020|
|1.2.2||May 26, 2018|
|1.2.1||Sep 6, 2017|
|1.2.0||Apr 24, 2017|
|0.1.4||Oct 17, 2015|
#3 in Rust patterns
416,857 downloads per month
Used in 2,710 crates (248 directly)
A macro which makes error types pleasant to write.
- Define enum type with arbitrary parameters
- Concise notation of Display and Error traits
- Full control of Display and Error trait implementation
- Any number of From traits
- Support for all enum-variants Unit, Tuple and Struct
Here is the comprehensive example:
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.