Data trait Shape { fn perimeter(&self) -> f32; fn area(&self) -> f32; ... { pub radius: f32 } impl Shape for Rectangle { fn perimeter(&self) ...
確定! 回上一頁