Structs in Rust come in three flavors: Structs with named fields, tuple structs, and unit structs. struct Regular { field1: f32, field2: String, ...
確定! 回上一頁