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. https://github.com/pest-parser/ast/commit/c964345c97ecf46c4b5e72a3034b3e3ec3196a84 Are you interested in a PR?
Activity
tomtau commentedon May 6, 2025
would that be what's expected without that conversion?
This was originally added in #35 by @TonyWu20