pub trait IntoAsyncIterator {
type Item: Send;
type IntoAsyncIter: AsyncIterator<Item = Self::Item>;
// Required method
fn into_async_iter(self) -> Self::IntoAsyncIter;
}Expand description
Trait for converting types into async iterators
Required Associated Types§
Sourcetype IntoAsyncIter: AsyncIterator<Item = Self::Item>
type IntoAsyncIter: AsyncIterator<Item = Self::Item>
The resulting async iterator type
Required Methods§
Sourcefn into_async_iter(self) -> Self::IntoAsyncIter
fn into_async_iter(self) -> Self::IntoAsyncIter
Convert the type into an async iterator
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".