title: How to ensure that enum field values are unique?
body: <p>Suppose you have a, say, integer field in an enum and you want to ensure that each enum constant has a unique field value. How would you go about that?</p>