1分钟内可阅读完
译文 · 基于 Rust By Example
原文链接: https://doc.rust-lang.org/stable/rust-by-example/flow_control/match/destructuring.html
match 代码块能以多种方式解构物件。
match
元组 — Rust By Example
数组/切片 — Rust By Example
枚举 — Rust By Example
指针和引用 — Rust By Example
结构体 — Rust By Example