2.5.1 `if let` 表达式
01-if let 表达式 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/pattern-matching/let-control-flow.html
Rust 有一些与其他语言不同的控制流结构,用于模式匹配:
if let 表达式while let 表达式let else 表达式01-if let 表达式 — Comprehensive Rust
02-while let 语句 — Comprehensive Rust
03-let else — Comprehensive Rust