Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Rust Option Enum Type Overview

Trevor Sullivan via YouTube

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

Reviews

Start your review of Rust Option Enum Type Overview

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.