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.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to