JelteF / derive_more

Some more derive(Trait) options
MIT License
1.68k stars 117 forks source link

`IsVariantAnd` for enums #365

Open RustyNova016 opened 3 months ago

RustyNova016 commented 3 months ago

Just like Option has is_some_and(), could we have a is_variant_and() derive?

I may try making a pull request, but I don't think I know enough to actually do everything

JelteF commented 2 months ago

Seems like a reasonable addition. Feel free to create a PR.