Rust 使用 match 关键字来进行模式匹配,有点像C 语言中的switch。 ... match 是一个表达式,也可以返回值 let binary = match boolean { false => 0, ...
確定! 回上一頁