Bytenum is a rust derive macro that creates a try_from<T>
implementation for an enum with only unit variants.
All types supported by #[repr(T)]
are supported by bytenum.
Add this to your Cargo.toml
:
toml
bytenum = "0.1.9"
Example:
```rust use bytenum::Bytenum;
enum Color { Red = 0x04, Green = 0x15, Blue = 0x34, }
fn main() -> Result<(), Box