01-if/else
if/else — Rust By Example
1分钟内可阅读完
译文 · 基于 Rust By Example
原文链接: https://doc.rust-lang.org/stable/rust-by-example/flow_control.html
任何编程语言都包含的一个必要部分就是改变控制流程:if/else,for 等。让我们谈谈 Rust 语言中的这部分内容。
if/else — Rust By Example
loop 循环 — Rust By Example
while 循环 — Rust By Example
for 循环和区间 — Rust By Example
match 匹配 — Rust By Example
if let — Rust By Example
let-else — Rust By Example
while let — Rust By Example