|
|
|
|
|
by ithkuil
842 days ago
|
|
Rust enum model is a hybrid. It allows to set discriminants explicitly and it allows unit-only enums (enums with only discriminants and no structures associated with them). You can control the underlying type of the discriminant too. With a little bit of derive macro sugar you can even iterate through all the values of enum. |
|