Rust Lifetimes explained Tutorial

Pubblicato il: 23 luglio 2024
sul canale di: Francesco Ciulla
13,397
163

Let's understand one of the most important core concept of the Rust programming language: Lifetimes

Related Lessons:
References and borrowing:    • References and Borrowing in Rust -  Full C...  
Structs:    • Structs in Rust -  Full Crash Rust Tutoria...  
Methods:    • Methods for Structs -  Full Crash Rust Tut...  
Generics:    • Generics in Rust: Functions, Structs, Enum...  
Traits:    • Understanding Traits in Rust: A Comprehens...  

New Rust Open Source project: https://www.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: https://github.com/FrancescoXX/rustcrab

ALL THE LINKS HERE: https://francescociulla.com


In questa pagina del sito puoi guardare il video online Rust Lifetimes explained Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Francesco Ciulla 23 luglio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 13,397 volte e gli è piaciuto 163 spettatori. Buona visione!