JelteF / derive_more

Some more derive(Trait) options
MIT License
1.73k stars 123 forks source link

`IsVariantAnd` for enums #365

Open RustyNova016 opened 5 months ago

RustyNova016 commented 5 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 4 months ago

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