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

Convert variants to top-level enum using From #22

Merged
merged 1 commit into from
Oct 4, 2022
Merged

Conversation

michaelsproul
Copy link
Member

This PR implements From so we can convert from variant structs to the top-level type without boilerplate. For now only an owning implementation is added, with references to be handled by an upcoming ToRef trait.

This is the first of two changes to support @ethDreamer's work on Capella.

@michaelsproul michaelsproul merged commit 21d449d into main Oct 4, 2022
@michaelsproul michaelsproul deleted the impl-from branch October 4, 2022 00:54
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