I want to open
/dev/mem on linux with a
memmap::MmapMut over a specific I/O-mapped area of memory. Because of I/O side-effects I want all my reads/writes to be
volatile. Is there a better way than
// mmap is a MmapMut ptr::write_volatile(mmap.as_ptr().offset(my_offset))
, for example without using raw pointers?