You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the variants of a Rust enum do not pollute the namespace that contains the enum, there is no need to prepend a common prefix to each enum variant. We should also normalize variant names so they are always PascalCase.
Here's what a generated enum looks like:
Since the variants of a Rust enum do not pollute the namespace that contains the enum, there is no need to prepend a common prefix to each enum variant. We should also normalize variant names so they are always
PascalCase
.Here's how we should generate the above enum:
The text was updated successfully, but these errors were encountered: