我們當範例的struct Car, trait Movable,之後我們要有新的物件,只要再實作(impl) 這個trait ,就可以呼叫該function, 編譯時期會對trait 型別進行檢查 ...
確定! 回上一頁