strum
strum copied to clipboard
enum name as prefix to enum value
given
enum Foo {
Bar,
}
I want to get
"FooBar"
so something like could work
#[strum_prefix]
enum Foo {
Bar,
}
This would be very helpful for replicating Python enums, which display as Foo.Bar
for the above scenario.
Looks like https://github.com/Peternator7/strum/pull/296 may solve your use case