enum-primitive-conversion
Procedural derive macro for converting fieldless enums to (Into
) and from (TryFrom
) its repr type.
See the Nomicon section on repr
for more details on fieldless enums.
Example code
By using this library the following code just works:
extern crate enum_repr_derive;
use ;
use TryFrom;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
License
Licensed under MIT. See LICENSE
file.
For developers
Release: cargo release