Intro to Rust (Enumerations and Options)

Words
90
Reading
1 min
Listen
Play
9y

In this Rust tutorial, we look at the union type enumerations in Rust. We talk about how we can use Enum Methods for type Polymorphism and as well as how we can use Enumerations to create multiple custom types with variations. We also look at how we can use pattern matching to destructively expose our the basic types embedded in our Enum types. We look at Options and how they make Rust a null safe programming language by way of creating a Enumeration similar to Haskell's Maybe and Nothing types.

Intro to Rust (Enumerations and Options) | Ecency