rust-embedded-community / aligned

A newtype with alignment of at least `A` bytes
Apache License 2.0
30 stars 9 forks source link

maybe move to `repr(align(N))` when it's stable #1

Closed japaric closed 5 years ago

japaric commented 7 years ago

upside: clarity FourByteAligned<_> (or Aligned4<_>) is clearer than Aligned<u32, _>

downside: lost of generics. I would have to create one different type per alignment, whereas today the alignment is specified via a type paramater.