Thanks to visit codestin.com
Credit goes to lib.rs

#ordinal #numbers #enums #ordinalize

macro no-std enum-ordinalize-derive

This crate provides a procedural macro that enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value

14 stable releases

4.3.1 Dec 15, 2023
4.2.9 Dec 15, 2023
4.2.4 Nov 30, 2023

#19 in #ordinal

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

2,067,957 downloads per month
Used in 1,158 crates (2 directly)

MIT license

46KB
1K SLoC

Enum Ordinalize Derive

This library enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value. See the enum-ordinalize crate.


Enum Ordinalize Derive

CI

This crate provides a procedural macro that enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.

See the enum-ordinalize crate.

Crates.io

https://crates.io/crates/enum-ordinalize

Documentation

https://docs.rs/enum-ordinalize

License

MIT

Dependencies

~165–580KB
~14K SLoC