summaryrefslogtreecommitdiff
path: root/Aliasing just means that multiple variables point to the same heap data.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-08-08 22:44:15 +0200
committerJasper Ras <jras@hostnet.nl>2025-08-08 22:44:15 +0200
commit22675cd8dc75d8b8d4b0f818f5b093efbc364802 (patch)
tree90156d37dccf13f012d535e7d92273259e3d5c17 /Aliasing just means that multiple variables point to the same heap data.md
parent295b343aecf330e830d79f06e0efc511e7d76da1 (diff)
vault backup: 2025-08-08 22:44:15HEADmain
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.md9
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