Rust Standard Library Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

iter() creates an iterator that borrows items. If you want to create an iterator that consumes itemsfor example, takes ownership of them by moving them you can use into_iter().