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

Download history 101097/week @ 2019-11-10 107667/week @ 2019-11-17 99367/week @ 2019-11-24 111879/week @ 2019-12-01 108351/week @ 2019-12-08 102454/week @ 2019-12-15 59607/week @ 2019-12-22 82606/week @ 2019-12-29 147325/week @ 2020-01-05 146118/week @ 2020-01-12 143563/week @ 2020-01-19 134441/week @ 2020-01-26 129501/week @ 2020-02-02 124897/week @ 2020-02-09 113377/week @ 2020-02-16

416,857 downloads per month
Used in 2,710 crates (248 directly)

MIT/Apache

47KB
886 lines

Quick Error

Status:production-ready
Documentation:http://tailhook.github.io/quick-error/

A macro which makes error types pleasant to write.

Features:

  • 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:

License

Licensed under either of

at your option.

Contribution

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.

No runtime deps