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

AnyBitPattern is not implemented for arrays where the element is AnyBitPattern #164

Open
marc0246 opened this issue Jan 19, 2023 · 1 comment

Comments

@marc0246
Copy link

marc0246 commented Jan 19, 2023

I know from reading past issues and PRs, that the way the trait tree looks now is because of historical reasons and chaning it is out of the question. But this brings a pretty big limitation with it: because AnyBitPattern has a blanket impl where T: Pod, this means an array [T; N] where T: AnyBitPattern is not AnyBitPattern. This in turn causes the derive macro not to work when a struct contains such a field. Is this something that you would consider fixing (the derive macro)? If so I would happily work on it.

@yanchith
Copy link
Contributor

Just ran into this with CheckedBitPattern too.

Same as above, happy to work on the workaround in the derive macro.

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

No branches or pull requests

2 participants