Trait IntoAsyncIterator

Source
pub trait IntoAsyncIterator {
    type Item;
    type IntoAsyncIter: AsyncIterator<Item = Self::Item>;

    // Required method
    fn into_async_iter(self) -> Self::IntoAsyncIter;
}
๐Ÿ”ฌThis is a nightly-only experimental API. (async_iterator #79024)
Expand description

Converts something into an async iterator

Required Associated Typesยง

Source

type Item

๐Ÿ”ฌThis is a nightly-only experimental API. (async_iterator #79024)

The type of the item yielded by the iterator

Source

type IntoAsyncIter: AsyncIterator<Item = Self::Item>

๐Ÿ”ฌThis is a nightly-only experimental API. (async_iterator #79024)

The type of the resulting iterator

Required Methodsยง

Source

fn into_async_iter(self) -> Self::IntoAsyncIter

๐Ÿ”ฌThis is a nightly-only experimental API. (async_iterator #79024)

Converts self into an async iterator

Implementorsยง