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
8.
Error Handling
8.1.
Unrecoverable Errors
8.1.1.
panic! Macro
8.1.2.
When to Use panic!
8.1.3.
Panic Behavior
8.1.3.1.
Unwinding
8.1.3.2.
Aborting
8.1.4.
Backtrace Generation
8.1.5.
Custom Panic Hooks
8.2.
Recoverable Errors with Result
8.2.1.
Result Enum Structure
8.2.2.
Pattern Matching on Result
8.2.3.
Result Methods
8.2.3.1.
unwrap Method
8.2.3.2.
expect Method
8.2.3.3.
unwrap_or Method
8.2.3.4.
unwrap_or_else Method
8.2.4.
Error Propagation
8.2.4.1.
? Operator
8.2.4.2.
Manual Error Propagation
8.2.4.3.
From Trait for Error Conversion
8.3.
Error Handling Strategies
8.3.1.
When to panic vs Return Result
8.3.2.
Error Handling in Libraries
8.3.3.
Error Handling in Applications
8.3.4.
Custom Error Types
8.3.4.1.
Error Trait Implementation
8.3.4.2.
Error Composition
8.3.5.
Error Context and Debugging
Previous
7. Common Collections
Go to top
Next
9. Generic Types, Traits, and Lifetimes