Uploaded April 2024 | Updated September 2026, 1 week ago
Discover Rust's powerful control flow construct, "Match." Learn how to compare values against various patterns and execute code based on the matching pattern. Patterns can include literal values, variable names, wildcards, and more. This tutorial covers everything from the basics to advanced uses of "Match" in Rust.
Video Chapters:
0:00 - Introduction to Match
0:46 - Anatomy of a Match Expression
1:45 - Match VS If
3:14 - Match VS Switch: Pattern Matching
5:02 - Match VS Switch: Exhaustiveness
6:46 - Match VS Switch: Binding Values
8:07 - Match VS Switch: Return Values
9:36 - Demo: Match and Enums for Coins, Binding Values
13:18 - Match with Option Enum: Exhaustiveness
17:16 - Catch-all Pattern and _ in Enums
19:04 - Conclusion
ALL THE LINKS HERE: francescociulla.com
Discover Rust's powerful control flow construct, "Match." Learn how to compare values against various patterns and execute code based on the matching pattern. Patterns can include literal values, variable names, wildcards, and more. This tutorial covers everything from the basics to advanced uses of "Match" in Rust.
Video Chapters:
0:00 - Introduction to Match
0:46 - Anatomy of a Match Expression
1:45 - Match VS If
3:14 - Match VS Switch: Pattern Matching
5:02 - Match VS Switch: Exhaustiveness
6:46 - Match VS Switch: Binding Values
8:07 - Match VS Switch: Return Values
9:36 - Demo: Match and Enums for Coins, Binding Values
13:18 - Match with Option Enum: Exhaustiveness
17:16 - Catch-all Pattern and _ in Enums
19:04 - Conclusion
ALL THE LINKS HERE: francescociulla.com










