Glossary: Software Design Patterns in Rust
Result
Also written: Option, ?, ok_or, Ok, Err
Rust's way to report success or failure: `Result` is `Ok(value)` or `Err(message)`, and `Option` is `Some` or `None`. The `?` operator returns an error early, and `ok_or` turns a missing Option into an error.