Integral enum
Rust derive-macro that simplifies integral enum creation
Example
use IntegralEnum;
/// Simple meaningful enum
/// (!) repr attribute is required
/// and can contain only integral values
/// like u8, u16, u32, u64, u128 and its signed equivalent
// Test it
assert_eq!;
assert_eq!;
assert_eq!;
Macro will automatically generate the following trait implementations: TryFrom, Clone, Copy, PartialEq, Eq, Display, Debug
TODO
- Do we really need to implement
PartialOrd + Ordalso?