Cool! I think that solution is much better than mine.

> But I
> think that polluting traits-interfaces with lifetime annotation is
> wrong. Why the trait should have lifetime annotation? It is
> implementation detail.

Just in case you want to see a case where it *does* make sense to put
a 'self lifetime in a trait definition, here is an example:

https://gist.github.com/dwrensha/db919b8e130e9eb72f0f
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to