rust-embedded-community / aligned

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

Add some Borrow/BorrowMut trait impls #16

Closed iostat closed 7 months ago

iostat commented 2 years ago

Hi! I've found myself in the position of needing an Aligned<[u8; _]> that could be fed into something that has a BorrowMut<[u8]> bound, and realized there are no passthrough impls for Borrow, so, this PR just adds those

MabezDev commented 7 months ago

Seems useful, thanks!