AmitKumarDas / Decisions

Apache License 2.0
10 stars 3 forks source link

Rust: How Option is defined in the std library #173

Open AmitKumarDas opened 5 years ago

AmitKumarDas commented 5 years ago

:nerd_face: There is no special declaration called type :nerd_face: None is no valued struct i.e. kind of Nil :nerd_face: Some is a single valued struct :nerd_face: value constructor

enum Option<T> {
    None,
    Some(T),
}