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§
Sourcetype Item
🔬This is a nightly-only experimental API. (async_iterator
#79024)
type Item
async_iterator
#79024)The type of the item yielded by the iterator
Sourcetype IntoAsyncIter: AsyncIterator<Item = Self::Item>
🔬This is a nightly-only experimental API. (async_iterator
#79024)
type IntoAsyncIter: AsyncIterator<Item = Self::Item>
async_iterator
#79024)The type of the resulting iterator
Required Methods§
Sourcefn into_async_iter(self) -> Self::IntoAsyncIter
🔬This is a nightly-only experimental API. (async_iterator
#79024)
fn into_async_iter(self) -> Self::IntoAsyncIter
async_iterator
#79024)Converts self
into an async iterator