15 releases (7 stable)

2.0.0 Aug 11, 2020
1.2.3 Jan 2, 2020
1.2.2 May 26, 2018
1.2.1 Sep 6, 2017
0.1.4 Oct 17, 2015

#22 in Rust patterns

Download history 140313/week @ 2020-06-01 145814/week @ 2020-06-08 139070/week @ 2020-06-15 141528/week @ 2020-06-22 130601/week @ 2020-06-29 138590/week @ 2020-07-06 136082/week @ 2020-07-13 171455/week @ 2020-07-20 187696/week @ 2020-07-27 191575/week @ 2020-08-03 187121/week @ 2020-08-10 193992/week @ 2020-08-17 196905/week @ 2020-08-24 191221/week @ 2020-08-31 195335/week @ 2020-09-07 198056/week @ 2020-09-14

637,384 downloads per month
Used in 3,487 crates (269 directly)

MIT/Apache

48KB
962 lines

Quick Error

Status:production-ready
Documentation:https://docs.rs/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