Trait FromAsyncIterator

Source
pub trait FromAsyncIterator<A> {
    // Required method
    fn from_iter<T>(iter: T) -> impl Future<Output = Self>
       where T: AsyncIterator<Item = A>;
}

Required Methods§

Source

fn from_iter<T>(iter: T) -> impl Future<Output = Self>
where T: AsyncIterator<Item = A>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromAsyncIterator<char> for String

Source§

async fn from_iter<T>(iter: T) -> Self
where T: AsyncIterator<Item = char>,

Source§

impl FromAsyncIterator<String> for String

Source§

async fn from_iter<T>(iter: T) -> Self
where T: AsyncIterator<Item = String>,

Source§

impl<'a> FromAsyncIterator<&'a str> for String

Source§

async fn from_iter<T>(iter: T) -> Self
where T: AsyncIterator<Item = &'a str>,

Source§

impl<A> FromAsyncIterator<A> for VecDeque<A>

Source§

async fn from_iter<T>(iter: T) -> Self
where T: AsyncIterator<Item = A>,

Source§

impl<A> FromAsyncIterator<A> for Vec<A>

Source§

async fn from_iter<T>(iter: T) -> Self
where T: AsyncIterator<Item = A>,

Source§

impl<K, V> FromAsyncIterator<(K, V)> for BTreeMap<K, V>
where K: Ord,

Source§

async fn from_iter<T>(iter: T) -> Self
where T: AsyncIterator<Item = (K, V)>,

Source§

impl<K, V, S> FromAsyncIterator<(K, V)> for HashMap<K, V, S>
where K: Eq + Hash, S: BuildHasher + Default,

Source§

async fn from_iter<T>(iter: T) -> Self
where T: AsyncIterator<Item = (K, V)>,

Source§

impl<T, S> FromAsyncIterator<T> for HashSet<T, S>
where T: Eq + Hash, S: BuildHasher + Default,

Source§

async fn from_iter<I>(iter: I) -> Self
where I: AsyncIterator<Item = T>,

Implementors§