summaryrefslogtreecommitdiff
path: root/A place is anything that is valid to put on the left-hand side of an assignme...
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-08-05 08:53:21 +0200
committerJasper Ras <jras@hostnet.nl>2025-08-05 08:53:21 +0200
commit295b343aecf330e830d79f06e0efc511e7d76da1 (patch)
tree85057ef1fe401adcd0d958ddf6ff966f25d8fef0 /A place is anything that is valid to put on the left-hand side of an assignment.md
parentf43372529e655f3b039946c969e4465193eb2042 (diff)
vault backup: 2025-08-05 08:53:21
Diffstat (limited to 'A place is anything that is valid to put on the left-hand side of an assignment.md')
-rw-r--r--A place is anything that is valid to put on the left-hand side of an assignment.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/A place is anything that is valid to put on the left-hand side of an assignment.md b/A place is anything that is valid to put on the left-hand side of an assignment.md
new file mode 100644
index 0000000..cd679e7
--- /dev/null
+++ b/A place is anything that is valid to put on the left-hand side of an assignment.md
@@ -0,0 +1,12 @@
+[[Borrow checker]]
+
+It is not THE left hand side of an assignment but anything that is valid to put there. But they can appear anywhere from what it looks like.
+
+It includes:
+- variables `a`
+- dereferences of places `*a`
+- Array accesses of places `a[0]`
+- Fields of places `a.0`
+- Any combination of the above
+
+The borrow checker expects a place to have certain permissions depending on the operation. \ No newline at end of file