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 /Pointer safety principle.md | |
parent | f43372529e655f3b039946c969e4465193eb2042 (diff) |
vault backup: 2025-08-05 08:53:21
Diffstat (limited to 'Pointer safety principle.md')
-rw-r--r-- | Pointer safety principle.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Pointer safety principle.md b/Pointer safety principle.md new file mode 100644 index 0000000..d47520c --- /dev/null +++ b/Pointer safety principle.md @@ -0,0 +1,8 @@ +[[Rust principles]] +[[Borrow checker]] + +--- + +Data should never be aliased and mutated at the same time. + +Boxes are not allowed to be aliased. References are meant to be aliased: the pointer safety principle is ensured via the borrow checker.
\ No newline at end of file |