Trying to learning how to use the Rust Result type can be daunting. In this “Working with Rust Result” series of short posts, I hope to make that more approachable. This series is for beginners who are finding it difficult to understand what a Result is and how to use it.

The series is split into fourteen parts as listed below.

  1. What is a Result?
  2. Extracting Values
  3. Extracting Values Unsafely
  4. Making Things Safer with Fallbacks
  5. Transforming Values
  6. Combining Results
  7. Chaining with Map
  8. Combining Results the Question Mark Operator
  9. Combining Results Some More
  10. Working with Errors
  11. Conversion to Option
  12. Value Tests
  13. Asides
  14. Summary

Now I know what you’re thinking:

Fourteen posts? You’ve got to be kidding me!

I know it’s a lot of posts. I’ve tried to make each as small as possible with a single focus. I’ve added examples and some diagrams to make it more palatable.

Also don’t feel the need to read the full series at one go. Read as much as you want or choose a topic you want to know more about or are currently struggling with and start there. Be sure to try some of the examples out and experiment with your own changes; That’s the best way to learn.

Jump in at What is a Result?