-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Allow arg_enum! to work with #[repr(c)] #543
Comments
Thanks for filing this. This should be a very quick fix, I'll see if I can knock it out when I get home tonight. |
No rush! Just a convenience thing, I have a workaround.
|
One can now use more than one meta item, and things like `#[repr(C)]` Example: ```rust arg_enum! { #[repr(C)] #[derive(Debug)] pub enum MyEnum { A=1, B=2 } } ``` Closes #543
imp(arg_enum!): allows using meta items like repr(C) with arg_enum!s One can now use more than one meta item, and things like `#[repr(C)]` Example: ```rust arg_enum! { #[repr(C)] #[derive(Debug)] pub enum MyEnum { A=1, B=2 } } ``` Closes #543
imp(arg_enum!): allows using meta items like repr(C) with arg_enum!s One can now use more than one meta item, and things like `#[repr(C)]` Example: ```rust arg_enum! { #[repr(C)] #[derive(Debug)] pub enum MyEnum { A=1, B=2 } } ``` Closes #543
Goal: make this possible:
I have an enum with 30 variants, or manually implementing from_str would be obvious.
The text was updated successfully, but these errors were encountered: