Rust 透過 impl 關鍵字提供了「方法呼叫語法」(method call syntax)的功能。 ... 方法的第一個參數比較特別,它有三種變體: self 、 &self 及 &mut self 。
確定! 回上一頁