在Rust 中是用 struct 這個關鍵字進行定義。 ... #[derive(Debug)] struct Data { id: u8, value: i32, text: String, } fn main() { let data1 ...
確定! 回上一頁