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
13
use enumrs::Tagged;

#[derive(Tagged)]
pub enum TestEnum {
    // The only variables that are in context 
    // while processing a tag expression are the
    // other tags that are on the same variant. 
    // #[tag(other, 10)]
    #[tag(value, other + 7)]
    Variant = 1,
}

pub fn main() {}