Closed yestyle closed 1 year ago
To support converting from &str to Enum and converting from Enum to String, add from_str() and implement Display for trait Enum respectively.
from_str()
Display
Merged with changes:
stringify!
Thanks!
To support converting from &str to Enum and converting from Enum to String, add
from_str()
and implementDisplay
for trait Enum respectively.