Rust Programming Tutorial #29 - Pattern Matching (Switch Statement)

Published: 18 December 2017
on channel: dcode
18,375
350

Similar to a 'switch statement' you might see in other languages, the Match Operator in Rust allows you to do different things based on the value of something else. You can use it to compare numbers, strings etc.

In this example we look at numbers and strings, as well as ranges and or's - it is very powerful.

It is based on 'patterns' in Rust, for more info:
https://doc.rust-lang.org/1.6.0/book/...

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!


On this page of the site you can watch the video online Rust Programming Tutorial #29 - Pattern Matching (Switch Statement) with a duration of hours minute second in good quality, which was uploaded by the user dcode 18 December 2017, share the link with friends and acquaintances, this video has already been watched 18,375 times on youtube and it was liked by 350 viewers. Enjoy your viewing!