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().