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

Re-expand attributes on bitfields for expanded getters and setters #45

Closed
Robbepop opened this issue Oct 30, 2020 · 0 comments · Fixed by #49
Closed

Re-expand attributes on bitfields for expanded getters and setters #45

Robbepop opened this issue Oct 30, 2020 · 0 comments · Fixed by #49
Labels
enhancement New feature or request

Comments

@Robbepop
Copy link
Owner

Currently when attaching non-bitfield specific attributes onto fields of a #[bitfield] annotated struct they are simply lost.
This is bad since users might want to have a direct influence onto some generated setters and getters.
An example use case might be to add some specific documentation or disable certain warnings but there might be more!

This issue proposes to re-expand non-bitfield specific attributes for a given field for all expanded getters and setters of it.
In the future we might want to provide the user with more control and take over control for which getters and setters the attribute shall be expanded but this issue is not concerned about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant