rust-lifetimes
CommunityMaster Rust lifetimes; avoid dangling references.
Authoradelabdelgawad
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Lifetimes are a core Rust concept that prevent dangling references by requiring explicit lifetime relationships between references, but they can be confusing and error-prone for developers. This Skill clarifies why lifetimes exist, when to annotate, and how to apply the three elision rules to write correct, safe code.
Core Features & Use Cases
- Explain lifetimes & why they exist to prevent dangling references.
- Clarify the three elision rules and when explicit annotations are required.
- Guide common patterns such as structs with reference fields and functions returning references, with practical examples.
Quick Start
Experiment with a function that returns a reference and add explicit lifetime annotations to satisfy the borrow checker.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-lifetimes Download link: https://github.com/adelabdelgawad/rust-fullstack-agents/archive/main.zip#rust-lifetimes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.