摘要: 一、关联类型(associated types) 我们阅读Rust程序的时候,有时候会出现如下的代码: trait Iterator { type Item; fn next(&mut self) -> Option<Self::Item>; } 下面是上面代码的注解:Iterator trait 阅读全文
posted @ 2020-06-08 09:53 让我思考一下 阅读(2968) 评论(0) 推荐(0) 编辑