e3ea43aa00
remove import
2022-03-23 22:15:43 +01:00
Samuel Štancl
0fa89738b4
Merge branch 'master' into issues/#4_fromName_tryFromName
2022-03-23 22:11:51 +01:00
18379047e5
import ValueError
2022-03-23 22:11:24 +01:00
Samuel Levy
0c87357a6e
Extend functionality to work with pure enums ( #6 )
...
* Extend functionality to work with pure enums
* Code review changes
Altered `::values()` to act like `::names()` for backed enums, code style fixes, general cleanups
2022-03-23 21:42:35 +01:00
Samuel Levy
ad1e07cf39
Code review changes
...
Dropped support for fragile indexes on pure enums
2022-03-15 07:33:09 +10:00
Samuel Levy
a063814396
#4 Added From trait
...
This adds the `from()` and `tryFrom()` methods to pure enums, and the `fromName()` and `tryFromName()` methods for all enum types.
2022-03-13 16:09:32 +10:00
Samuel Štancl
b50d001374
add names() and values() methods, resolve #1
2022-02-20 21:53:21 +01:00
Samuel Štancl
e01edd128f
add options() method, resolve #2
2022-02-20 21:50:53 +01:00
Samuel Štancl
41b423da38
initial
2022-02-20 20:58:57 +01:00
f9fe9e5cab
Initial commit
2022-02-20 19:51:56 +01:00