這功能或許平常比較不常用一點,它長這樣子trait Name { fn name(&self); } struct Foo; ... 從Rust 往程式底層前進系列第5 篇. Trait Object.
確定! 回上一頁