match — exhaustive pattern matching. if let — single pattern.
match:
if let:
1// match2match value {3 0 => println!("zero"),4 1..=5 => println!("one to five"),5 _ => println!("other"),6}78// if let9if let Some(value) = option {10 println!("{}", value);11} else {12 println!("None");13}
Key: match for exhaustive, if let for single case.