Crate async_iterator

Source
Expand description

An async version of iterator.

This crate provides the following capabilities:

  • The base async Iterator trait implemented with async fn next
  • The ability to collect into a vec
  • The ability to asynchronously map over values in the iterator
  • The ability to extend vec with an async iterator

§Minimum Supported Rust Version

This code should be considered unstable and only works on recent versions of nightly.

§Trait definitions

All traits make use of the async_trait annotation. In order to implement the traits, use async_trait.

Modules§

prelude
The async-iterator prelude

Structs§

Lend
The iterator returned from AsyncIterator::lend.
LendMut
The iterator returned from AsyncIterator::lend.
Map
An iterator that maps value of another stream with a function.

Traits§

FromIterator
Conversion from an Iterator.
IntoIterator
Conversion into an Iterator.
Iterator
An interface for dealing with iterators.
LendingIterator
An interface for dealing with iterators which borrow from Self