self 表示调用方法时的Struct实例对象(如 rect1.area() 时,self就是rect1)。有如下几种self形式:. fn f(self) :当 obj.f() 时,转移obj的所有权 ...
確定! 回上一頁