rust-error-handling
Installation
SKILL.md
Rust Error Handling
Comprehensive guide based on The Rust Programming Language Ch. 9, Effective Rust Item 4, and Rust by Example.
When to Use This Skill
- Choosing between
panic!,Result, andOption - Designing custom error types for a library or application
- Composing multiple error types with
? - Deciding between
thiserror(libraries) andanyhow(applications) - Converting errors with
From/Into - Wrapping context around errors