Skip to content

Glossary: Data Structures and Algorithms in Rust

Option

Also written: Some, None

An enum that is either Some(value) or None, Rust's way to say maybe nothing. It's used for pop on an empty stack, for a missing key or for the end of a linked list.

Where the book teaches it

Related terms

BoxNodeunwrap() and expect()