pkenum_core 0.2.0

Core logic for pkenum.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use syn::Ident;

/// Represents a Rust enum.
pub struct EnumToken {
    pub name: Ident,
    pub variants: Vec<Ident>,
}

impl EnumToken {
    pub fn new(name: Ident, variants: Vec<Ident>) -> Self {
        EnumToken { name, variants }
    }
}