Skip to content

Convert variants to top-level enum using From#22

Merged
michaelsproul merged 1 commit intomainfrom
impl-from
Oct 4, 2022
Merged

Convert variants to top-level enum using From#22
michaelsproul merged 1 commit intomainfrom
impl-from

Conversation

@michaelsproul
Copy link
Copy Markdown
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