rust-embedded-community / aligned

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

impl<A, T> Copy for Aligned<A, T> where ... T: Copy. #15

Closed anforowicz closed 2 years ago

anforowicz commented 2 years ago

FWIW, this PR is motivated by the Crubit project which might need to generate explicitly aligned struct fields (e.g. here) but requires the Copy impl of the underlying type to be propagated through.

japaric commented 2 years ago

Thanks!

japaric commented 2 years ago

release v0.4.1 includes this PR