by markhermeling · 4d ago · 0 comments
https://learn.adacore.com/courses/advanced-ada/parts/data_ty...
It would allow for compiler level protection from writing wrong data into a register.
Anybody know if that is planned for Rust.
Something like this: https://en.wikibooks.org/wiki/Ada_Programming/Representation...
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.