Closed Crell closed 3 years ago
For scalar-backed enums, add a value() method that returns the corresponding value.
For unit enums, the method doesn't exist and so will error out like any other missing method. Possibly with a more targeted error message.
RFC has been updated accordingly. @iluuu1994, mark this closed when it's been implemented.
For scalar-backed enums, add a value() method that returns the corresponding value.
For unit enums, the method doesn't exist and so will error out like any other missing method. Possibly with a more targeted error message.