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

enum: support bitfield enums that use associated constants #1166

Closed
tamird opened this issue Nov 29, 2017 · 2 comments
Closed

enum: support bitfield enums that use associated constants #1166

tamird opened this issue Nov 29, 2017 · 2 comments

Comments

@tamird
Copy link
Contributor

tamird commented Nov 29, 2017

I think a composition between rustified_enum and constified_enum_module would achieve this, but I believe they're mutually exclusive today.

@tamird
Copy link
Contributor Author

tamird commented Nov 29, 2017

Actually that composition won't quite do it, since I really want associated constants on the type rather than a module that contains the type and all the variants.

bors-servo pushed a commit that referenced this issue Apr 7, 2018
optionally use associated constants in bitfields

See #1166

r? @emilio
@emilio
Copy link
Contributor

emilio commented Apr 8, 2018

Fixed by #1293, please reopen if not the case.

@emilio emilio closed this as completed Apr 8, 2018
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

No branches or pull requests

2 participants