Automatically implement Unaligned
without custom derive
#110
Labels
compatibility-breaking
Changes that are (likely to be) breaking
Unaligned
without custom derive
#110
Once the associated_const_equality feature is stabilized, we ought to be able to automatically implement
Unaligned
without needing a custom derive:Note that we may not want to do this - it would mean that types would no longer need to opt-in to implementing
Unaligned
as they do today. This probably isn't a huge deal since you can't do anything withUnaligned
on its own (FromBytes
andAsBytes
are the traits that really unlock the ability to muck with a type's internal state), but at a minimum it would make the API inconsistent. One option would be to just makeAlign<ALIGN = 1>
a bound so thatUnaligned
could become a safe trait that just represents the fact of opting-in:The text was updated successfully, but these errors were encountered: