enumrs 0.2.1

A derive for adding arbitrary values to enums
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use enumrs::Tagged;

#[derive(Tagged)]
pub enum TestEnum {
    // Tags must have a name. if no expression
    // is given, the value of the tag is a bool
    // set to `true`.
    #[tag()]
    Variant = 1,
}

pub fn main() {}