Trait core::iter::IntoIterator [] [src]

pub trait IntoIterator {
    type Item;
    type IntoIter: Iterator<Item=Self::Item>;
    fn into_iter(self) -> Self::IntoIter;
}

Conversion into an Iterator`Iterator`

Implementing this trait allows you to use your type with Rust's for`for` loop. See the module level documentation for more details.

Associated Types

type Item

The type of the elements being iterated

type IntoIter: Iterator<Item=Self::Item>

A container for iterating over elements of type Item`Item`

Required Methods

fn into_iter(self) -> Self::IntoIter

Consumes Self`Self` and returns an iterator over it

Implementors