Rust
Installation
SKILL.md
Quick Reference
| Topic | File | Key Trap |
|---|---|---|
| Ownership & Borrowing | ownership-borrowing.md |
Move semantics catch everyone |
| Strings & Types | types-strings.md |
String vs &str, UTF-8 indexing |
| Errors & Iteration | errors-iteration.md |
unwrap() in production, lazy iterators |
| Concurrency & Memory | concurrency-memory.md |
Rc not Send, RefCell panics |
| Advanced Traps | advanced-traps.md |
unsafe, macros, FFI, performance |
Critical Traps (High-Frequency Failures)
Ownership — #1 Source of Compiler Errors
- Variable moved after use — clone explicitly or borrow with
& for item in vecmoves vec — use&vecor.iter()to borrowStringmoved into function — pass&strfor read-only access