Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a FromStr impl to the xed_enum! macro #7

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Conversation

Phantomical
Copy link
Member

I was trying to convert one of the examples and found that I could really use this. It just forwards to the internal str2xed_..._enum_t method for the type. One thing I did have to do was adjust the InvalidEnumValue error type to support arbitrary values but that doesn't seem like too big of an issue to me.

@Phantomical Phantomical merged commit db50a33 into main Feb 25, 2024
8 checks passed
@Phantomical Phantomical deleted the enum-from-str branch February 25, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant