enum_index_repr 0.2.1

EnumIndexRepr provides a small macro which allows getting the index on an enum.
Documentation
1
2
3
4
5
pub trait EnumIndexGet {
    fn index(&self) -> u16;
}

pub use enum_index_repr_derive::EnumIndex;