A derive macro that adds a impl From<u8> to any enum.
If the number of items is bigger than u8::MAX, it will use u16, then u32 if bigger than u16::MAX.
Example:
use FromNum;
assert_eq!;
assert_eq!;
assert_eq!;
A derive macro that adds a impl From<u8> to any enum.
If the number of items is bigger than u8::MAX, it will use u16, then u32 if bigger than u16::MAX.
Example:
use FromNum;
assert_eq!;
assert_eq!;
assert_eq!;