-
Notifications
You must be signed in to change notification settings - Fork 723
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
codegen: Respect original repr for bitfield-like enums, add a constifying variant. #437
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)
/// constant. | ||
/// | ||
/// This makes bindgen generate constants instead of enums. | ||
pub fn constified_enum<T: AsRef<str>>(mut self, arg: T) -> Builder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add documentation that this takes a regexp?
r=me with that small doc about regexps |
4ed28b0
to
0df8441
Compare
@bors-servo r=fitzgen |
📌 Commit 0df8441 has been approved by |
☀️ Test successful - status-travis |
r? @fitzgen
Fixes #430