Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the Rust Option enum type in this 21-minute tutorial video. Dive into the "option" module from the Rust std crate, which declares an Option enum type with two variants: None and Some(T). Learn how to use the Option type to handle potential null values for any data type, including core Rust types and custom user-defined types. Follow along with hands-on demonstrations covering declaring Option types, unwrapping Option values, mutating Option types, and working with custom enum types. Gain practical insights into Rust programming and enhance your understanding of this powerful language feature.
Syllabus
Introduction
Declaring Option Type
Unwrapping Option Type
Muting Option Type
Custom Enum Type
Unwrap
Taught by
Trevor Sullivan