Skip to main content

IntoAsyncIterator

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)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).

Converts self into an async iterator

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§