Module enum

Module enum 

Source
Expand description

The chain of if-statements is a deliberate design choice as patterns in a match-statement is too restricted for arbitrary expressions (e.g, see TpmRc for an example).