UsefulLinks
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
7.
Common Collections
7.1.
Vectors
7.1.1.
Vector Creation
7.1.1.1.
vec! Macro
7.1.1.2.
Vec::new Function
7.1.1.3.
Vec::with_capacity Function
7.1.2.
Vector Operations
7.1.2.1.
push Method
7.1.2.2.
pop Method
7.1.2.3.
insert Method
7.1.2.4.
remove Method
7.1.3.
Accessing Vector Elements
7.1.3.1.
Indexing Syntax
7.1.3.2.
get Method
7.1.3.3.
Bounds Checking
7.1.4.
Vector Iteration
7.1.4.1.
for Loops
7.1.4.2.
Iterator Methods
7.1.4.3.
Mutable Iteration
7.1.5.
Vector Capacity and Memory
7.1.6.
Storing Multiple Types with Enums
7.2.
Strings
7.2.1.
String vs &str
7.2.1.1.
Owned vs Borrowed Strings
7.2.1.2.
String Literals
7.2.1.3.
String Creation
7.2.2.
String Manipulation
7.2.2.1.
push and push_str Methods
7.2.2.2.
String Concatenation
7.2.2.3.
format! Macro
7.2.3.
String Indexing Issues
7.2.3.1.
UTF-8 Encoding
7.2.3.2.
Grapheme Clusters
7.2.3.3.
Byte vs Character Indexing
7.2.4.
String Slicing
7.2.4.1.
Byte Slicing
7.2.4.2.
Character Boundaries
7.2.5.
String Iteration
7.2.5.1.
chars Method
7.2.5.2.
bytes Method
7.2.5.3.
lines Method
7.2.5.4.
split Methods
7.3.
Hash Maps
7.3.1.
HashMap Creation
7.3.1.1.
HashMap::new Function
7.3.1.2.
collect Method
7.3.2.
HashMap Operations
7.3.2.1.
insert Method
7.3.2.2.
get Method
7.3.2.3.
entry API
7.3.2.4.
remove Method
7.3.3.
HashMap Iteration
7.3.3.1.
Key Iteration
7.3.3.2.
Value Iteration
7.3.3.3.
Key-Value Pair Iteration
7.3.4.
Ownership in HashMaps
7.3.4.1.
Key Ownership
7.3.4.2.
Value Ownership
7.3.4.3.
Reference Storage
7.3.5.
Hash Map Performance
7.3.5.1.
Hashing Algorithms
7.3.5.2.
Custom Hash Functions
Previous
6. Managing Growing Projects
Go to top
Next
8. Error Handling