subenum 1.2.0

A proc-macro to create subsets of enums, that can be converted to and from.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![cfg(not(feature = "std"))]
#![no_std]

use subenum::subenum;

#[allow(unused)]
#[subenum(OnlyA)]
enum Simple {
    #[subenum(OnlyA)]
    A,
    B,
}