I tried to have an Enum that has variants that have no content. (in your terminology Unit)
#[derive(FromPest, Debug, Clone)]
#[pest_ast(rule(Rule::Formula))]
pub enum Formula {
True,
False,
}
I looked at the existing code and did not understand how it should work.
I have a commit that solves the issue for me.
c964345
Are you interested in a PR?
I tried to have an Enum that has variants that have no content. (in your terminology Unit)
I looked at the existing code and did not understand how it should work.
I have a commit that solves the issue for me.
c964345
Are you interested in a PR?