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§
Sourceasync fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = A>,
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.