diff options
Diffstat (limited to 'Aliasing just means that multiple variables point to the same heap data.md')
-rw-r--r-- | Aliasing just means that multiple variables point to the same heap data.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Aliasing just means that multiple variables point to the same heap data.md b/Aliasing just means that multiple variables point to the same heap data.md new file mode 100644 index 0000000..5049d5a --- /dev/null +++ b/Aliasing just means that multiple variables point to the same heap data.md @@ -0,0 +1,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.
\ No newline at end of file |