if let
Binds and branches in a single step when you only care about a single variant or pattern.
if let pattern = value { ... } else { ... } binds and branches in a single step. Use it when you only care about a single variant or pattern.
wcl
label = if let Shape::Circle { radius, .. } = s {
format("circle r={}", radius)
} else {
"other"
}