Tour di Rust Indice dei Contenuti

[Non tradotto] Option

Rust has a built in generic enum called Option that allows us to represent nullable values without using null.

enum Option<T> {

This enum is so common, instances of the enum can be created anywhere with the enum variants Some and None.