首先來介紹一下結構(structure) , Rust 中宣告結構是用 struct 關鍵字,這 ... 搭配的方法而已,就像其它語言的static method ,使用時要用 Person::new 來呼叫。
確定! 回上一頁