The goal I'm trying to achieve is to read a generic
UserType which is
Sized into a bunch of "backup" registers on an embedded device to keep the value stored between full resets of the device.
I'm trying to figure out how I can read the given
UserType as a list of
&[u8; X] without doing any form of
memcpy. The best I found so far is
core::mem::transmute but it says in the documentation that underneath the hood it does a
NOTE: I'm fully aware this is unsafe and has aliasing and padding issues. This is for an embedded project and I'll be handling the padding for the "last bytes on the last 32bit register" myself.