num_enum 0.7.6

Procedural macros to make inter-operation between primitives and enums easier.
Documentation
1
2
3
4
5
6
7
#[derive(num_enum::IntoPrimitive)]
enum Numbers {
    Zero,
    One,
}

fn main() {}