Rust · Class
Option
Option<T> represents a value that may be present or absent. It is either Some(value) or None, and Rust code must handle both cases.
Last updated
- Since
- 1.0.0
Syntax
pub enum Option<T> { None, Some(T), }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SomeNoneOption::mapOption::and_thenOption::as_refOption::unwrap_orOption::ok_orOption::iter