Is there a way to use unsafe to tell the compiler to treat an enum as a specific variant without the check & branch? Same idea as accessing the fields of a union, but for an enum?
I spent a bit of time reading around and couldn't find exactly what I'm looking for. Maybe I just don't know the right search terms. I found people using transmute to accomplish this but that seems like a heavy hammer with the potential for a lot of collateral UB.