`AnyBitPattern` is not implemented for arrays where the element is `AnyBitPattern`
marc0246 opened this issue · 1 comments
marc0246 commented
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 commented
Just ran into this with CheckedBitPattern
too.
Same as above, happy to work on the workaround in the derive macro.