Instead, Rust provides the enumeration type, which can handle errors and much more. ... Banana(bool), Apple{ color: Color }, } fn print(x: Fruit) { match x ...
確定! 回上一頁