summaryrefslogtreecommitdiff
path: root/Pointer safety principle.md
blob: d47520c2332b75cc565921d07497abfc794dc04f (plain)
1
2
3
4
5
6
7
8
[[Rust principles]]
[[Borrow checker]]

---

Data should never be aliased and mutated at the same time.

Boxes are not allowed to be aliased. References are meant to be aliased: the pointer safety principle is ensured via the borrow checker.