Hacker News new | ask | show | jobs
by WhyNotHugo 1048 days ago
It’s not safe under Rust’s definition of safe.

If you map the file into readonly memory and than get references to it, the underlying memory can mutate (eg: by modifying the file itself).