Glossary: Coding Interviews in Rust
Option / None
Also written: Option, None, Some
Rust's way to say a value may be missing: `Some(value)` when there is an answer and `None` when there is not. Functions return `None` to mean "no answer".
Glossary: Coding Interviews in Rust
Also written: Option, None, Some
Rust's way to say a value may be missing: `Some(value)` when there is an answer and `None` when there is not. Functions return `None` to mean "no answer".