I wish that I could embed the `negated` bit into the enum layout without doubling the number of of variants.
Same with the 'LtEq/GtEq' variants, which themselves are just a bool on top of two other variants.
Conversation
This Tweet was deleted by the Tweet author. Learn more
Replying to
I could do that but UIntFilter is still going to be larger than it needs to be. Ideally the 'negated' bit would be encoded into the byte dedicated to the enum tag.
2
1
4
It can't do it because you can take references to the variants of an enum with destructuring. You would need to make a negated and non-negated variant for each of your current variants. There would need to be a way to mark it as not allowing taking references to do more packing.

