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

#2 in Rust patterns

Download history 100864/week @ 2019-10-15 103909/week @ 2019-10-22 95818/week @ 2019-10-29 105612/week @ 2019-11-05 101216/week @ 2019-11-12 112686/week @ 2019-11-19 97806/week @ 2019-11-26 112271/week @ 2019-12-03 107131/week @ 2019-12-10 96625/week @ 2019-12-17 59629/week @ 2019-12-24 95802/week @ 2019-12-31 146557/week @ 2020-01-07 141888/week @ 2020-01-14 133945/week @ 2020-01-21

416,857 downloads per month
Used in 2,579 crates (247 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