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.
Glossary: Data Structures and Algorithms in Rust
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.