Uploaded July 2024 | Updated November 2026, 3 hours ago
Let's understand one of the most important core concept of the Rust programming language: Lifetimes
Related Lessons:
References and borrowing: youtube.com/watch?v=Q_0yoX07Fhs
Structs: youtube.com/watch?v=PCjuO-Bv5FI
Methods: youtube.com/watch?v=94iSHoKmPmY
Generics: youtube.com/watch?v=sLjOV8kYxfE
Traits: youtube.com/watch?v=w8lmMaKY3Hs
New Rust Open Source project: rustcrab.com
0:00 Introduction.
0:50 Preventing Dangling References with Lifetimes. The Borrow Checker
3:45 Generic Lifetimes in functions - First Example
6:18 Lifetimes in functions - Example 2
9:00 Lifetimes Annotations in Structs definitions
9:35 Lifetime Elision
10:55 Three Rules for Lifetimes
11:35 Lifetimes in Methods Definition
12:15 Static Lifetimes
12:45 Last example: Generics Type Parameters, Trait Bounds, Lifetimes together
Github Repository of the Open Source Project: github.com/FrancescoXX/rustcrab
ALL THE LINKS HERE: francescociulla.com
Let's understand one of the most important core concept of the Rust programming language: Lifetimes
Related Lessons:
References and borrowing: youtube.com/watch?v=Q_0yoX07Fhs
Structs: youtube.com/watch?v=PCjuO-Bv5FI
Methods: youtube.com/watch?v=94iSHoKmPmY
Generics: youtube.com/watch?v=sLjOV8kYxfE
Traits: youtube.com/watch?v=w8lmMaKY3Hs
New Rust Open Source project: rustcrab.com
0:00 Introduction.
0:50 Preventing Dangling References with Lifetimes. The Borrow Checker
3:45 Generic Lifetimes in functions - First Example
6:18 Lifetimes in functions - Example 2
9:00 Lifetimes Annotations in Structs definitions
9:35 Lifetime Elision
10:55 Three Rules for Lifetimes
11:35 Lifetimes in Methods Definition
12:15 Static Lifetimes
12:45 Last example: Generics Type Parameters, Trait Bounds, Lifetimes together
Github Repository of the Open Source Project: github.com/FrancescoXX/rustcrab
ALL THE LINKS HERE: francescociulla.com










