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
pub enum Bar { A = 1, B = 2, C = 3, } pub enum Baz { D = 4, E = 5, F = 6, } pub enum Foo { Bar(Bar), Baz(Baz), }
Currently Foo takes 2 bytes, even though it can be trivially represented as a single u8.
Foo
u8
The text was updated successfully, but these errors were encountered:
I think this is related to #46213, which is as far as I understand a more general case of your proposed optimization.
Sorry, something went wrong.
Hm, looks like it. I will close this issue in favor of the linked one.
No branches or pull requests
Currently
Foo
takes 2 bytes, even though it can be trivially represented as a singleu8
.The text was updated successfully, but these errors were encountered: