Export High-Res PDF
Switch to Light Mode
SkillSnap Official GuideUpdated 7/24/2026
Rust
The language of safety and speed. Master Ownership, Borrowing, and Cargo to build reliable, high-performance systems.
Ownership & Memory
One owner per value (Dropped when out of scope)Owner
Immutable / Mutable Borrow& / &mut
Many readers OR one writer (Never both)Borrow Rule
Deep copy (Heap) vs Bitwise copy (Stack)Clone vs Copy
Ensure references stay validLifetimes ('a)
Common Types & Pattern Matching
Some(T) or None (No Null)Option<T>
Ok(T) or Err(E) (Error Handling)Result<T, E>
Exhaustive pattern matchingmatch
Handle single pattern caseif let
Catch-all pattern_ (Underscore)
Tooling (Cargo)
Fast compile check (No binary)cargo check
Linter for idiomatic Rustcargo clippy
Auto-format codecargo fmt
View macro expansioncargo expand
Visualize dependenciescargo tree
Traits & Generics
Auto-implement traits (Debug, Clone)#[derive(...)]
Implement behavior for typeimpl Trait for T
.map(), .filter(), .collect()Iterator
Explicit generic type hintTurbo-fish ::<>
Concurrency & Async
Zero-cost futuresasync / .await
Atomic Reference Count (Thread-safe sharing)Arc<T>
Thread-safe mutable accessMutex<T>
Channels (Message Passing)mpsc
Standard Async RuntimeTokio
Smart Pointers & Unsafe
Heap allocationBox<T>
Reference Counting (Single-thread)Rc<T>
Interior MutabilityRefCell<T>
Bypass borrow checker (Use sparingly)unsafe { ... }
Error Handling Idioms
Propagate error upward? Operator
Panic if Err (Prototyping only)unwrap()
Panic with message (Better than unwrap)expect()
Placeholder (Panics if reached)todo!()
Print debug info to stderrdbg!(var)