Pattern Syntax in Rust

preview_player
Показать описание
The ultimate Rust lang tutorial. Follow along as we go through the Rust lang book chapter by chapter.

Chapters:
0:00​ Intro
0:28 Matching Literals
0:53 Matching Named Variables
2:11 Multiple Patterns
2:36 Matching Ranges of Values
3:00 Destructuring to Break Apart Values
7:03 Ignoring Values in a Pattern
11:26 Match Guards
13:32 @ Bindings
14:43 Outro

#letsgetrusty​​ #rust​lang​ #tutorial
Рекомендации по теме
Комментарии
Автор

This series is really awesome. Seriously. Thank you.

scott
Автор

Damn, big W to the Rust creators.. This pattern matching syntax and lots more from the rust team is just wonderful... I have suffered too long in the hands of Javascript

kevinandeleven
Автор

Remember c++'s switch case? I heard that it can only match intagers.

denizsincar
Автор

Destructing.... so that's why it happened, so that's why this comp. lang. use the term 'drop' instead of 'destructor'.

liveonphoenix
Автор

Wild how powerful Rust is. Awesome stuff!

Talhaguy
Автор

destructuring is beautiful! Awesome tips bro

TheMeticulousMoo
Автор

4:40 what about origin? we should add this match case -> Point {x : 0, y: 0}

yapayzeka
Автор

Great stuff! I didn't know these types of matching existed

dtauscher
Автор

Wow these are powerful! The match guards are awesome

Thank you

Автор

I thought this was going to concern design patterns and syntactical candy making implementing them easier, a la the Gang of Four book. 🤣 This is still great stuff, but I was confused for a minute.

I've been in Software Engineering too long...

GPandzik
Автор

Such a valuable video! thank you, you are helping a lot in my learning experience with rust

GiovanneAfonso
Автор

I have been binge watching your series, absolutely ah-mazing, thank you so much. Reading a long Rust book chapter takes me like 40 minutes (+ a day long break from exhaustion), watching your video of the same chapter takes me only 12 minutes (thanks 2x), I do not think I could have learned Rust without this!

josevargas
Автор

i guess a little video on regexs in rust would be cool. But nice video

evangeloskolimitras
Автор

Ah, you didn't say "et cetera". Going strong, working through the video's! Onward!

ari-mcbrown