Trait async_iterator::IntoIterator

source ·
pub trait IntoIterator {
    type Item;
    type IntoIter: Iterator<Item = Self::Item>;

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

Conversion into an Iterator.

Required Associated Types§

source

type Item

The type of the elements being iterated over.

source

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

Which kind of iterator are we turning this into?

Required Methods§

source

async fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I: Iterator> IntoIterator for I

§

type Item = <I as Iterator>::Item

§

type IntoIter = I