mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 03:59:54 +02:00
feat(topic): add lifetimes resource (#8800)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# Lifetimes and Borrow Checker
|
||||
|
||||
Lifetimes define how long references remain valid, preventing dangling references and memory safety issues. The borrow checker enforces these rules at compile time. Lifetime annotations use syntax like `'a` to specify relationships between references in function signatures when the compiler can't infer them automatically.
|
||||
Lifetimes define how long references remain valid, preventing dangling references and memory safety issues. The borrow checker enforces these rules at compile time. Lifetime annotations use syntax like `'a` to specify relationships between references in function signatures when the compiler can't infer them automatically.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@video@Crust of Rust: Lifetime Annotations](https://youtu.be/rAl-9HwD858)
|
||||
|
Reference in New Issue
Block a user