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
Generic Types, Traits, and Lifetimes
Generic Types
Generic Functions
Type Parameters
Generic Function Syntax
Type Inference
Generic Structs
Generic Struct Definition
Generic Field Types
Multiple Type Parameters
Generic Enums
Generic Enum Variants
Standard Generic Enums
Generic Methods
Implementation Blocks with Generics
Method-Specific Type Parameters
Monomorphization
Compile-Time Code Generation
Performance Implications
Traits
Trait Definition
Trait Syntax
Method Signatures
Associated Types
Trait Implementation
impl Trait for Type Syntax
Orphan Rule
Coherence Rules
Default Implementations
Default Method Bodies
Overriding Defaults
Trait Bounds
Generic Type Constraints
Multiple Trait Bounds
where Clauses
Trait Objects
Dynamic Dispatch
Object Safety
dyn Keyword
Returning Traits
impl Trait Syntax
Boxed Trait Objects
Derive Macros
Standard Derivable Traits
Custom Derive Macros
Lifetimes
Lifetime Annotation Syntax
Lifetime Parameters
Lifetime Elision Rules
Input Lifetime Elision
Output Lifetime Elision
Method Lifetime Elision
Static Lifetime
Lifetime Bounds
Lifetime Subtyping
Generic Lifetimes in Structs
Generic Lifetimes in Methods
Previous
8. Error Handling
Go to top
Next
10. Writing Automated Tests