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 /Rust.md | |
parent | f43372529e655f3b039946c969e4465193eb2042 (diff) |
vault backup: 2025-08-05 08:53:21
Diffstat (limited to 'Rust.md')
-rw-r--r-- | Rust.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,4 +1,6 @@ [[Why it is good to learn rust]] +[[A cool tool that visualizes the borrow checker]] +[[Rust principles]] [[Cargo]] [[Items that are always imported by default in Rust are called the prelude]] [[Static class functions are called associated functions]] @@ -23,3 +25,11 @@ [[If is not a statement but an expression]] [[Returning values from loops]] [[Loop over an array with for-in]] +[[Undefined behaviour is caught by the compiler]] +[[Variables lives in the stack]] +[[Boxes live in the heap]] +[[Cloning a box does a deep copy of the heap data]] +[[Aliasing is accessing the same data through different variables]] +[[Borrow checker]] +[[A place is anything that is valid to put on the left-hand side of an assignment]] + |