Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Get 20% off all career paths from fullstack to AI
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
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