We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
strum_discriminants
I need to add a custom attribute to a type generated via strum_discriminants:
#[derive(EnumDiscriminants)] #[strum_discriminants( name(MyEnumD), derive(CustomDerive), CustomAttr = "value" // <- it doesn't compile )] pub enum MyEnum { ... }
The result should be:
#[derive(CustomDerive)] #[CustomAttr = "value"] pub enum MyEnumD { ... }
How to do that?
The text was updated successfully, but these errors were encountered:
This would be super helpful to add #[wasm_bindgen] to the Discriminants variant of an enum!
#[wasm_bindgen]
Discriminants
Sorry, something went wrong.
No branches or pull requests
I need to add a custom attribute to a type generated via
strum_discriminants
:The result should be:
How to do that?
The text was updated successfully, but these errors were encountered: