13 releases (5 stable)

1.2.2 May 26, 2018
1.2.1 Sep 6, 2017
1.2.0 Apr 24, 2017
1.1.0 Jun 4, 2016
0.1.4 Oct 17, 2015

#8 in Rust patterns

Download history 79002/week @ 2019-07-26 79001/week @ 2019-08-02 83796/week @ 2019-08-09 81395/week @ 2019-08-16 77864/week @ 2019-08-23 80538/week @ 2019-08-30 87268/week @ 2019-09-06 84941/week @ 2019-09-13 86404/week @ 2019-09-20 91029/week @ 2019-09-27 99984/week @ 2019-10-04 97268/week @ 2019-10-11 101543/week @ 2019-10-18 101653/week @ 2019-10-25 100496/week @ 2019-11-01

282,425 downloads per month
Used in 2,241 crates (247 directly)

MIT/Apache

49KB
925 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