Learning what's possible in Rust. ... Enum or Trait Object ... Defines how to get the area of a shape. trait Area { fn area(&self) -> f64; ...
確定! 回上一頁