Rust Option Enum Type Overview

Описание к видео Rust Option Enum Type Overview

The Rust std crate includes an "option" module that declares an Option enum type, of a generic type. The Option enum has two different "variants" (aka. values) that it can be set to: either None, or Some(T). Using the Option type allows you to set a sort of "null" value for any data type, including core Rust types and custom, user-defined types.

Let's explore a hands-on demo of how the Option enum type works!

🤯 Rust Programming Playlist 🦀    • Rust Programming Tutorial 🦀  

📖 Rust Option Enum Type: https://doc.rust-lang.org/rust-by-exa...

Visual Studio Code ➡️ https://code.visualstudio.com
Rust Website ➡️ https://rust-lang.org
Rustup Installer ➡️ https://rustup.rs
Rust Docs ➡️ https://doc.rust-lang.org/book

Please follow me on these other social channels!

➡️ https://trevorsullivan.net
➡️ https://github.com/pcgeek86
➡️   / pcgeek86  
➡️    / trevorsullivan  
➡️   / trevorsoftware  
➡️ https://tiktok.com/pcgeek86

All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.

#opensource #software #linux #devops #programming #rusty #rustdev #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #rustlang #rust #developer

Комментарии

Информация по комментариям в разработке