Uploaded April 2024 | Updated November 2026, 3 hours ago
Enums in Rust
Enums allow you to define a type by enumerating its possible variants.
We’ll define and use an enum to show how it can encode meaning and data.
Next, we’ll explore a particularly useful enum, called Option, which expresses that a value can be either something or nothing.
ALL THE LINKS HERE: francescociulla.com
0:00 Introduction. Definition
0:37 First example for Enums: IP addresses with Enums
5:26 Second example for Enums: Messaging systems
10:34 Option Enum: In Rust, there is no Null value
15:04 Conclusion
Enums in Rust
Enums allow you to define a type by enumerating its possible variants.
We’ll define and use an enum to show how it can encode meaning and data.
Next, we’ll explore a particularly useful enum, called Option, which expresses that a value can be either something or nothing.
ALL THE LINKS HERE: francescociulla.com
0:00 Introduction. Definition
0:37 First example for Enums: IP addresses with Enums
5:26 Second example for Enums: Messaging systems
10:34 Option Enum: In Rust, there is no Null value
15:04 Conclusion










