Collections
HashMap, HashSet, BTreeMap, and Vec operations.
9 examples
BasicsOwnershipCompound TypesFlow ControlFunctionsGenericsTraitsError HandlingCollectionsConcurrencyAsyncSmart PointersIteratorsPatternsModulesMacrosUnsafeLifetimesTestingFile I/OSerializationCLI
beginner2 examples
intermediate7 examples
BTreeMap
Sorted key-value map with B-tree implementation.
BTreeMap Range Queries
Query ranges in sorted maps with BTreeMap.
Group By with HashMap
Group items by key using HashMap.
HashMap Advanced Operations
Merge, update, and transform HashMaps.
HashMap Entry API
Use the entry API for conditional insert and update.
Sorting Vectors
Sort vectors with sort, sort_by, and sort_unstable.
VecDeque
Double-ended queue with efficient push/pop from both ends.