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
Structuring Data with Structs
Struct Definition and Types
Classic Structs
Named Fields
Field Types
Struct Naming Conventions
Tuple Structs
Unnamed Fields
Accessing Tuple Struct Fields
Newtype Pattern
Unit-Like Structs
Zero-Sized Types
Marker Types
Creating and Using Struct Instances
Struct Instantiation
Field Init Shorthand
Struct Update Syntax
Destructuring Structs
Pattern Matching with Structs
Struct Ownership and Borrowing
Ownership of Struct Fields
Borrowing Individual Fields
Partial Moves
Lifetime Annotations in Structs
Methods and Associated Functions
Implementation Blocks
Method Definition
&self Parameter
&mut self Parameter
self Parameter
Method Call Syntax
Method Chaining
Associated Functions
Constructor Patterns
Static Methods
Multiple Implementation Blocks
Previous
3. Understanding Ownership
Go to top
Next
5. Enums and Pattern Matching