strum
strum copied to clipboard
Formatting on enum properties.
Hallo!
I'm using enum properties for a project, and I want 2 props: pid & code. Right now, I have to set code as the result of to_string, as I want a "custom" enum field. Could formatting (like {0}) be implemented on enum properties?
Thanks, Alex <3
@wwqwq2313 Why write a separate function? Implement it in the same function.