blob: 5049d5ad7daf0fa298fba7efcb749ec2c091edb2 (
plain)
1
2
3
4
5
6
7
8
9
|
[[Rust]]
[[Ownership]]
[[Dereferencing is to access the data behind a pointer]]
[[Pointer safety principle]]
---
Mutating an alias from one part of the program can cause unforeseen effects in other parts of the program that reference the same data. Rust prevents this by making sure that mutable references prevent aliasing.
|