enum-repr
Derive enum repr conversions compatible with type aliases. Works on no_std.
EnumRepr proc macro takes an EnumReprType argument and defines
two functions for the enum derived on: fn repr(&self) -> EnumReprType
and fn from_repr(x: EnumReprType) -> Option<Self>. The real enum
discriminant still remains isize.
extern crate enum_repr;
extern crate libc;
use *;