Inheriting / Nesting Traits on other Traits

后端 未结 0 1694
轮回少年
轮回少年 2021-01-03 01:38

In Rust, is it possible to generalize a trait to always implement another trait, or to have a struct "inherit" its traits\' implementations of other traits?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题