diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-08-05 08:53:21 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-08-05 08:53:21 +0200 |
commit | 295b343aecf330e830d79f06e0efc511e7d76da1 (patch) | |
tree | 85057ef1fe401adcd0d958ddf6ff966f25d8fef0 /A place is anything that is valid to put on the left-hand side of an assignment.md | |
parent | f43372529e655f3b039946c969e4465193eb2042 (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.md | 12 |
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 |