- Rust Standard Library Cookbook
- Jan Nils Ferner Daniel Durante
- 34字
- 2021-08-27 19:45:11
There's more...
iter() creates an iterator that borrows items. If you want to create an iterator that consumes items—for example, takes ownership of them by moving them – you can use into_iter().