{}
RustCanon
Learn
Patterns
78+
Runnable Rust patterns by topic
Software Engineering
Classic patterns adapted for Rust
Anti-Patterns
Common pitfalls and how to avoid them
Compiler Errors
Decode the most common error messages
Build
Recipes
80+
Real-world project templates with crates
Learning Paths
Structured journeys from beginner to expert
Practice
Exams
Practice tests and skill assessments
Reference
Cheatsheet
Quick reference for syntax and idioms
Resources
Curated books, courses, and tools
Home
Patterns
78+
Software Engineering
Anti-Patterns
Compiler Errors
Recipes
80+
Learning Paths
Exams
Cheatsheet
Resources
โ Back to All Patterns
๐๏ธ
Data Structures & Algorithms
Implement classic data structures and algorithms in idiomatic Rust
9 Patterns
9 Interactive
0 Live Demos
Binary Trees & BST
intermediate
Tree structures with ownership-aware design
๐ฎ Playground
trees
bst
+2
Graph Algorithms
advanced
BFS, DFS, Dijkstra with Rust idioms
๐ฎ Playground
graphs
bfs
+2
Sorting Algorithms
intermediate
Implement and optimize sorting in Rust
๐ฎ Playground
sorting
quicksort
+2
Dynamic Programming
advanced
Memoization and tabulation patterns
๐ฎ Playground
dp
memoization
+1
Hash Tables
advanced
Custom hash maps and hashing strategies
๐ฎ Playground
hashmap
hashing
+1
Heaps & Priority Queues
intermediate
Binary heaps and priority-based structures
๐ฎ Playground
heap
priority-queue
+1
Linked Lists
advanced
Singly and doubly linked lists with ownership patterns
๐ฎ Playground
linked-list
ownership
+2
Stacks & Queues
intermediate
LIFO and FIFO data structures with various implementations
๐ฎ Playground
stack
queue
+2
Tries (Prefix Trees)
advanced
Efficient string storage and prefix-based operations
๐ฎ Playground
trie
prefix-tree
+2