I underestimated the power of match when I started rust
So here was my problem. I am trying to set a specific enum value depending on 4 bools, meaning I have to have a stupidly long if else block.
I wrote the whole ugly thing upset at doing it and then thinking to myself. There is no way I can be sure this does what I want it to do, it's spagetti code.
Then it hit me. match (bool1,bool2,bool3,bool4){} and there it is, the auto complete doing all the cases for me. I lost 5 minutes doing that if else block for nothing and another 5 to write this post. But there you have it. I like rust.