On 29/05/14 09:46 PM, Daniel Micay wrote:
> On 29/05/14 09:05 PM, Oleg Eterevsky wrote:
>> If a type implements both Iterator and RandomAccessIterator, wouldn't
>> it lead to a conflict?
> 
> No, it won't. There's a default implementation for types implementing
> the Iterator trait, and only a single explicit implementation.
> 
> There are other more flexible ways to do this, but this happens to be
> enough for this use case.

Ah, I missed the point of the example. It's supposed to be implemented
for *all* types implementing both traits, not specific ones. I'll post a
new solution.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to