pub trait FromIterator<A>: Sized {
// Required method
async fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self;
}Expand description
Conversion from an Iterator.
Required Methods§
Sourceasync fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
async fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
Creates a value from 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> FromIterator<T> for Vec<T>
Available on crate features alloc or std only.
impl<T> FromIterator<T> for Vec<T>
Available on crate features
alloc or std only.