Is there a way I can make a C++ style enumeration with explicit representation type in Rust? Example:
enum class Number: int16_t { Zero, One, Two, Three,
You can specify a representation for the enum.
#[repr(i16)] enum Foo { One = 1, Two = 2, }