We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now to convert two different subenum types to each other you must do the following
#[subenum(A, B)] enum Foo { #[subenum(A, B) First, #[subenum(A, B) Second, Third, }
// Current let a_version: A = A::First; let b_version: B = B::try_from(Foo::from(a_version))?;
// Desired let a_version: A = A::First; let b_version: B = B::try_from(a_version)?;
This extra step of converting to Foo is likely optimized away, but I think its more obvious what is happening with only one conversion.
Foo
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Right now to convert two different subenum types to each other you must do the following
This extra step of converting to
Foo
is likely optimized away, but I think its more obvious what is happening with only one conversion.The text was updated successfully, but these errors were encountered: