Enum variant count
This crate provides VariantCount derive macro for enum which adds to it the VARIANT_COUNT constant, containing count of enum variants.
The VariantCount usage example:
assert_eq!;
Usage
If you're using Cargo, just add it to your Cargo.toml:
[]
= "1.2"
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or opensource.org/licenses/MIT)
at your option.