This is similar to enumeratum.Enum, but different in that values must be literal values.
This restraint allows us to enforce uniqueness at compile time.
Note that uniqueness is only guaranteed if you do not do any runtime string manipulation on
values.
Returns a Seq of A objects that the macro was able to find.
Returns a Seq of A objects that the macro was able to find.
You will want to use this in some way to implement your values method. In fact, if you
aren't using this method...why are you even bothering with this lib?
The sequence of values for your Enum. You will typically want to implement this in your
extending class as a val so that withValue and friends are as efficient as possible.
The sequence of values for your Enum. You will typically want to implement this in your
extending class as a val so that withValue and friends are as efficient as possible.
Feel free to implement this however you'd like (including messing around with ordering, etc)
if that fits your needs better.