IntoIterator

protocol IntoIterator

A collection that transfers ownership of its elements into an iterator.

Use this when iteration should move values out of the source. Iterable instead borrows its source and generally yields borrowed elements.

Methods

consuming func into_iter() -> IntoIter

Consumes this value and returns an iterator over its elements.

View Source
consuming func into_iter() -> IntoIter