Regarding the asm!
macro, the rust reference says:
The set of memory locations that assembly code is allowed to read and write are the same as those allowed for an FFI function
- Refer to the unsafe code guidelines for the exact rules.
However, I can not find any information on that in the unsafe code guidelines