Rust 26 🦀 Concise Control Flow with if let and while let
A match expression is exhaustive. It forces you to handle every variant, which is exactly what you want when the type has a fixed set of possibilities and every one matters. But sometimes you care about one variant and want to ignore the rest. Writing a full match with a catch-all _ => {} arm…