From 295b343aecf330e830d79f06e0efc511e7d76da1 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Tue, 5 Aug 2025 08:53:21 +0200 Subject: vault backup: 2025-08-05 08:53:21 --- Rust.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Rust.md') diff --git a/Rust.md b/Rust.md index 39825ee..be302f9 100644 --- a/Rust.md +++ b/Rust.md @@ -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]] + -- cgit v1.2.3