#int #try #enum #result #2 #serde-json #assert #box #enums #1

no-std int-enum

A derive macro for conversion between integer and enum types

6 releases (breaking)

0.5.0 Oct 6, 2022
0.4.0 Feb 23, 2020
0.3.0 Dec 20, 2019
0.2.0 Dec 18, 2019
0.1.0 Oct 21, 2019

#472 in Rust patterns

Download history 870/week @ 2023-06-05 1750/week @ 2023-06-12 1570/week @ 2023-06-19 1178/week @ 2023-06-26 1161/week @ 2023-07-03 1287/week @ 2023-07-10 1192/week @ 2023-07-17 1188/week @ 2023-07-24 1227/week @ 2023-07-31 1836/week @ 2023-08-07 1480/week @ 2023-08-14 1207/week @ 2023-08-21 1680/week @ 2023-08-28 1253/week @ 2023-09-04 1590/week @ 2023-09-11 1690/week @ 2023-09-18

6,329 downloads per month
Used in 31 crates (17 directly)

MIT/Apache

11KB
130 lines

int-enum

crates.io docs.rs build status

This crate provides a derive macro to generate code for conversion between integer and enum types.

[dependencies]
int-enum = "0.5"

Compiler support: requires rustc 1.60+

License

This project is licensed under either of Apache License, Version 2.0 or MIT License 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.

Dependencies

~3MB
~67K SLoC