inttype-enum
Converts an [enum
] into an [inttype
], and try to convert it back
Auto implement From<enum> for inttype
, and TryFrom<inttype> for enum
.
if one(only one) variant is tagged with #[default]
, then From<inttype> for enum
will be implemented
Usage example:
let conn: u8 = Connect.into;
assert!;
assert!;
assert!;
assert!;