Novel Control Flow

Rust 有几个与其他语言不同的控制流结构。它们用于模式匹配:

  • if let 表达式
  • while let expressions
  • match 表达式