Trait Extend

Source
pub trait Extend<A> {
    // Required method
    async fn extend<T>(&mut self, iter: T)
       where T: IntoIterator<Item = A>;
}
Expand description

Extend a collection with the contents of an iterator.

Required Methods§

Source

async fn extend<T>(&mut self, iter: T)
where T: IntoIterator<Item = A>,

Extends a collection with the contents of an iterator.

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<T> Extend<T> for Vec<T>

Source§

async fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)

Implementors§