Trait IntoIterator

Source
pub trait IntoIterator {
    type IntoIter: Iterator;

    // Required method
    fn into_iter(self) -> Self::IntoIter;
}
Expand description

Trait for values which can be converted into an Iterator

Required Associated Types§

Source

type IntoIter: Iterator

The type of the returned iterator

Required Methods§

Source

fn into_iter(self) -> Self::IntoIter

Convert this value into an Iterator

Implementors§

Source§

impl<T> IntoIterator for T
where T: Iterator,