Rust: Iterators vs for loops (who is faster)

preview_player
Показать описание
In Chapter 13 section 4 of "The Rust Programming Language" Book, we will be going the speed performance of iterators and whether or not there is an overhead cost to using them.
Рекомендации по теме
Комментарии
Автор

Yo, this is an underrated rust series! Going through the book while someone adding some commentary is just what i was looking for. This will def start to get more views as more ppl transition over to rust. Keep up the great work

dougrudolph
Автор

&buffer[i-12..i] means it's taking a 12 element slice out of the array - the i'th element and the 11 elements preceding it.

mikefdorst