Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDocument integer enum discriminators in the manual #15755
Comments
huonw
added
the
A-docs
label
Jul 17, 2014
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Jan 12, 2015
steveklabnik
referenced this issue
Jan 12, 2015
Closed
[r+] Add enum discriminants to the reference. #21047
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
steveklabnik
closed this
in
a2e277e
Jan 17, 2015
This comment has been minimized.
This comment has been minimized.
|
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
mbrubeck commentedJul 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.