1
0
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:
Arik Chakma
2025-06-18 18:47:30 +06:00
committed by GitHub
parent 0c72a6c36e
commit 7882a91a3d

View File

@@ -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)