Short answer, you can't do inheritance with structs. Instead of inheritance, Rust uses composition. However, you can do inheritance within traits.
確定! 回上一頁