関数もクロージャも引数はパターンを受け取る(NoTopAlt とか微妙な違いはあるけど)ので、match の枝の左に書けるものは構文としては書ける
https://doc.rust-lang.org/reference/items/functions.htmlhttps://doc.rust-lang.org/reference/expressions/closure-expr.html
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.