每個程式語言都有處理重複概念的工具,rust 的工具之一是generic types,泛型 ... + self.y.powi(2)).sqrt() } } fn main() { let p = Point { x: 5, ...
確定! 回上一頁