filmov
tv
Rust Programming Tutorial #37 - Option (Enum)

Показать описание
The 'Option' Enum represents either a value (Some) or no value at all (None). It is common to see this in Rust with many methods and functions returning this particular type.
It's useful because it forces us to deal with unexpected situations such as when the expected return value of a function does not actually provide a value - because it doesn't exist or can't be found.
In this video we look at a common example of the Option Enum in use and we also define our own function that returns an Option type to truly understand how it works.
For your reference:
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
It's useful because it forces us to deal with unexpected situations such as when the expected return value of a function does not actually provide a value - because it doesn't exist or can't be found.
In this video we look at a common example of the Option Enum in use and we also define our own function that returns an Option type to truly understand how it works.
For your reference:
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Rust Programming Tutorial #37 - Option (Enum)
Rust Programming Tutorial #37 - continue
Rust Tutorial
[Rust Programming] Learning to make a Roguelike - Day 37
[Rust Programming] Crafting Interpreters: Day 37, Chapter 28 (Part 1)
Best Programming Languages #programming #coding #javascript
Rust Programming Course for Beginners - Tutorial
Rust Programming: The Ultimate Builder Pattern Tutorial
Yjs Rust Port In Tauri v2 Running A Local Server
Rust Programming Tutorial #30 - Reading User Input
Rust Programming Tutorial #39 - Enum Methods
Rust | unwrap | Rust Tutorial 37
Control flow: if/else in Rust Programming Language
Rust Tutorial Full Course
Rust Crash Course | Rustlang
Enums and Pattern Matching in Rust
Rust Programming Complete Tutorial| Pattern Matching With Enum Methods (With Return) & Match|Par...
Rust Programming Tutorial #14 - Code Blocks
Beginner's Guide to Regular Expressions in Rust 🦀 Rust Programming Tutorial for Developers
The Rust Programming Language - Lifetime - Video 37
Rust Programming Tutorial #6 - If Else Statements
Generic struct and enum | Rust Tutorial for beginner | Part 37
Rust Programming Tutorial #16 - References
Yew | Location | use_location | yew-router | Rust | Frontend | Tutorial 37
Комментарии