Getting Started With Rust: Option, Result, and the ? Operator
Three things you’ll see constantly in Rust are Option, Result, and the ? operator. They give Rust a clean way to deal with missing values and errors. Option Option represents a value that might exist. It has two possibilities: For example: Or if…