by wyldfire · 5y ago · 0 comments
So now the compiler will generate calls to memcpy() for accesses to unaligned elements in packed structures like the one in the example?
But the docs will say this:
> Accessing unaligned fields directly with e.g. packed.unaligned is safe however.
https://doc.rust-lang.org/nightly/std/ptr/fn.read_unaligned....