Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well then, good news! Such usages of iterators in Rust are almost always result in the same code that would be generated by old-fashioned, hand-written loops. The 'trick' is that the methods (and the closure!) are inlined, and generics are specialized at compile time.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: