logoalt Hacker News

viraptor • yesterday at 8:45 PM • 0 replies • view on HN

You cannot make it safe. The data representation part is already mostly covered by packed!, enum and ranged_integers. But that doesn't make register access safe.

Any time you touch hardware, all guarantees Rust makes disappear. And anything you place in mapped io can change when you don't expect it.