diff options
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 |