#enum #conversion #primitive

no-std enum-repr-derive

Simple trait for converting enum to and from its primitive repr type

6 releases

0.2.0 Jul 28, 2021
0.1.5 Dec 26, 2020
0.1.3 Jan 25, 2020

#299 in Rust patterns

Download history 15/week @ 2021-08-11 59/week @ 2021-08-18 6/week @ 2021-08-25 2/week @ 2021-09-01 5/week @ 2021-09-08 4/week @ 2021-09-15 7/week @ 2021-09-22 7/week @ 2021-09-29 5/week @ 2021-10-06 14/week @ 2021-10-13 10/week @ 2021-10-20 20/week @ 2021-10-27 86/week @ 2021-11-03 30/week @ 2021-11-10 18/week @ 2021-11-17 25/week @ 2021-11-24

160 downloads per month
Used in 2 crates (via cec-rs)

MIT license

10KB
118 lines

enum-repr-derive

Crates.io Docs.rs CI Coverage Status

Installation

Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run cargo install enum-repr-derive

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.

See CONTRIBUTING.md.

Releasing

cargo release --skip-publish and let the github CD pipeline do the rest.

Dependencies

~350–780KB
~19K SLoC