Tag: Ownership
5 posts
-
How rustc Checks Your Code: MIR Borrow Checking, Lifetime Inference, Monomorphization and Trait Coherence
Compiler-centric Rust: MIR borrow check, NLL, lifetime inference and variance, monomorphization vs dyn dispatch, trait coherence, and production.
-
Rust String vs &str: Heap Strings, Slices, Ownership and Function Signatures
Compare Rust String and str: heap vs slice, borrowing vs ownership, function signatures, conversions, and common lifetime mistakes.
-
Rust Ownership | Ownership, Borrowing, and Lifetimes
Deep dive into Rust ownership: move and copy, functions and ownership, references, slices, lifetime annotations, and patterns compared to C++, with runnable examples.
-
Rust Ownership Debugging Case Study
Solve real Rust ownership, borrowing, and lifetime errors beginners hit: reading borrow checker messages, RefCell, Rc, Arc, and multithreaded.
-
Rust Memory Safety: Ownership, Borrowing, Lifetimes, unsafe
How Rust prevents use-after-free and data races at compile time: move semantics, borrow checker rules, lifetime annotations, and safe unsafe boundaries.