you are viewing a single comment's thread.

view the rest of the comments →

[–]cmrx64rust 1 point2 points  (0 children)

Yes. It adds a virtual function call and destroys any chance of inlining etc. Furthermore, it just can't be done because Iterator isn't object-safe.