Rust Internals
Using `if let` to check for equality
tech6hutch
February 7, 2020, 9:36pm
19
Yoda must have hit his head, though.
if let 42 = x {}
"if let forty-two equals x"
4 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
More love for Rust pattern matching please
14
3211
March 25, 2019
Pre-RFC: syntax sugar for `matches!`
language design
42
2675
November 1, 2020
QOL improvements to Pattern matching and let else
language design
18
1016
September 22, 2024
Pre-Pre-RFC: `let else match` statement
language design
74
4573
March 26, 2023
Matching variable values
ideas (deprecated)
7
6802
March 25, 2019