Pattern Matching
Match is an expression.
#![allow(unused)] fn main() { let val = match exp1 { exp2 if <match guard expression> => ..., exp3 => ..., _ => ..., } }
Match is an expression.
#![allow(unused)] fn main() { let val = match exp1 { exp2 if <match guard expression> => ..., exp3 => ..., _ => ..., } }