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

Document integer enum discriminators in the manual #15755

Closed
mbrubeck opened this Issue Jul 17, 2014 · 1 comment

Comments

Projects
None yet
3 participants
@mbrubeck
Copy link
Contributor

mbrubeck commented Jul 17, 2014

The tutorial documents how to set the discriminator for a C-style enum (enum Foo { Bar = 123 }) and how to cast such an enum to a numeric type (Bar as uint). However, the language manual does not mention these features at all.

@huonw huonw added the A-docs label Jul 17, 2014

steveklabnik added a commit to steveklabnik/rust that referenced this issue Jan 12, 2015

steveklabnik added a commit to steveklabnik/rust that referenced this issue Jan 13, 2015

steveklabnik added a commit to steveklabnik/rust that referenced this issue Jan 14, 2015

@dcampbell24

This comment has been minimized.

Copy link
Contributor

dcampbell24 commented Jan 22, 2015

I think it would be good to also mention what the type of the discriminant is and how to control it per #9613.

dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.