EnumIndex

EnumIndex provides a small macro which implements EnumIndexGet, permitting the following:

```rust use enumindexrepr::EnumIndexGet; use enumindexrepr_derive::EnumIndex;

[repr(u16)]

[derive(EnumIndex)]

enum Tag { Hello, World, How, Are, You, }

fn main() { assert_eq!(Tag::How.index(), 2); } ```