How do I implement an iterator that returns items that implement some trait?

后端 未结 0 429
灰色年华
灰色年华 2021-01-07 18:01

I have the following structure:

trait DoesIt: Sized {
    fn do_it(self) -> usize {
        // Only adding default impl for this example,
        // normal         


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