fieldless_enum_tools 0.2.0

tools for enums without any fields
Documentation
1
2
3
4
5
6
7
8
9
10
11
use fieldless_enum_tools::Not;

#[derive(Not)]
enum EmptyNot {
    #[not]
    A,
    #[not(A)]
    B,
}

fn main() {}