Skip to content

Glossary: Rust Basics

Option

Also written: Some, None

An enum for a value that might be missing: `Some(value)` when there is one and `None` when there isn't. You must handle both before using the value.

Where the book teaches it

Related terms

Resultmatchunwrap