Useful Links
Computer Science
Programming
By Language
Rust Programming
1. Getting Started with Rust
2. Rust Fundamentals
3. Understanding Ownership
4. Structuring Data with Structs
5. Enums and Pattern Matching
6. Managing Growing Projects
7. Common Collections
8. Error Handling
9. Generic Types, Traits, and Lifetimes
10. Writing Automated Tests
11. Functional Programming Features
12. Smart Pointers
13. Fearless Concurrency
14. Advanced Features
15. Foreign Function Interface
16. Rust Patterns and Best Practices
Common Collections
Vectors
Vector Creation
vec! Macro
Vec::new Function
Vec::with_capacity Function
Vector Operations
push Method
pop Method
insert Method
remove Method
Accessing Vector Elements
Indexing Syntax
get Method
Bounds Checking
Vector Iteration
for Loops
Iterator Methods
Mutable Iteration
Vector Capacity and Memory
Storing Multiple Types with Enums
Strings
String vs &str
Owned vs Borrowed Strings
String Literals
String Creation
String Manipulation
push and push_str Methods
String Concatenation
format! Macro
String Indexing Issues
UTF-8 Encoding
Grapheme Clusters
Byte vs Character Indexing
String Slicing
Byte Slicing
Character Boundaries
String Iteration
chars Method
bytes Method
lines Method
split Methods
Hash Maps
HashMap Creation
HashMap::new Function
collect Method
HashMap Operations
insert Method
get Method
entry API
remove Method
HashMap Iteration
Key Iteration
Value Iteration
Key-Value Pair Iteration
Ownership in HashMaps
Key Ownership
Value Ownership
Reference Storage
Hash Map Performance
Hashing Algorithms
Custom Hash Functions
Previous
6. Managing Growing Projects
Go to top
Next
8. Error Handling