
Rust
Result in Rust Explained and How to Handle Both Outcomes
Result is an enum with Ok and Err. Learn the handful of methods that cover most uses and when to match instead of chaining.
8 min read
Tag
2 posts

Result is an enum with Ok and Err. Learn the handful of methods that cover most uses and when to match instead of chaining.

A working guide to error handling in Rust: Result, the question mark, custom error types, anyhow and thiserror, and the line between a panic and an error.